string « HBM « JPA Q&A





1. How to HQL-EagerLoad only hbm annotated collection of string    forum.hibernate.org

Hello, I configure Hibernate trhough hbm and I have problems loading a collection of strings eagerly: first my hbm config: Code: HQL: Code: SELECT DISTINCT Object_JOINED1 FROM yourPackage.Object AS Object_JOINED1 ...

2. Composite string fields as a ID in hbm.xml?    forum.hibernate.org

For a table with a composite key, you may map multiple properties of the class as identifier properties. The element accepts property mappings and mappings as child elements. Your persistent class must override equals() and hashCode() to implement composite identifier equality. It must also implements Serializable.

4. string as primary ky mapping in hbm.xml    forum.hibernate.org