OK, so if I take the schema strings out of the annotations in source code, and add the following to my hibernate.cfg.xml file
Code:
<property name="default_schema">"ColorRepository"</property>
then everything works fine. However, if instead I try to set the schema on the URL string
Code:
<property name="connection.url">jdbc:postgresql://127.0.0.1:5432/hibernate:currentSchema="ColorRepository";</property>
then it doesn't work. The bottom line is I cannot seem to get my code to work just by specifying the schema in the annotations. I suspect there may be a bug somewhere, maybe in the provider, because I can get some code working by specifying the schema in the annotations, but I cannot get all the code working just using annotations.
I would rather not have to specify the schema in the cfg file as it limits the entire session to just that schema.
Does anyone else have any more clues?
Cheers, Eric