Level « Property « JPA Q&A





1. Multiple level Property in Criteria    forum.hibernate.org

I am trying to use a multiple level Property defined as: Code: Property.forName("application").getProperty("database").getProperty("id") or Code: Property.forName("application.database.id") and i am getting an exception: org.hibernate.QueryException: could not resolve property: application.database of: com.ez.ezrt.model.ApplicationAccess Hibernate version: 3.0.4 Mapping documents: Code:

2. one-to-one property-ref and 2'nd level cache    forum.hibernate.org

dorel wrote: I have a bidirectional one-to-one A-B relationship through property-ref (FK, I cannot model it through shared PK way (or can I ?) because A can have a B or not, they can live and have a meaning separately). You can have a PK-to-PK zero-or-one-to-zero-or-one bidirectional mapping by specifying it as many-to-one unique="true" in both directions. The reason your cache ...

3. system-level properties: which ones are?    forum.hibernate.org

I've read the documentation, FAQs, and forums, and feel something is missing, and could be improved in section 3.4, Configuration: Optional Configuration Properties. There are several nice lists of properties prefaced by this: Code: Warning: some of these properties are "system-level" only. System-level properties can be set only via java -Dproperty=value or hibernate.properties. They may not be set by the ...

6. 2nd level cache and counter property    forum.hibernate.org

Hi, In my application I have a business entity that needs to include a counter of reads, this counter is the only property in the class that needs to get updated. I want over the 2nd level cache options and it seems that none of the existing solutions supports the ability to separate the database update call from the commit transaction ...