1. Component with empty collection must be null?.. forum.hibernate.orgI have a component (embedded object) that contains a few fields and a collection. The hibernate doc says (ch 8) that when all component fields are null, the component itself is null. This is great, however my component contains a collection which doesn't follow the null-semantic such that it's never null, but instead empty. But if the the collection is empty, ... |
2. Null Components forum.hibernate.orgpublic class Form { private P p1 = new P(); private P p2 = new P(); private P p3 = new P(); /** * @hibernate.component * prefix="P1_" */ public final P getP1() { ... |
3. Component object is null when all its properties are null forum.hibernate.orgWell my class is Interval |
4. Why does Criteria return null component ? forum.hibernate.orgBeginner Joined: Tue Jul 05, 2005 4:44 am Posts: 40 Location: Paris, France Hi, In my mapping document, I use a component with not-null properties. To request my objet, I have used Criteria. When I stress the application, the criteria returns sometimes a result with null component. And I don't understand why : First, with the same request, I can have ... |
5. Component fetched as Null forum.hibernate.orgHi, For the following mapping, the attendees component is always fetched as NULL, unless I can the DBVal getter. How can I make sure 'attendees' component gets populated by a non-null value during the session.list() call? Right now I'm getting it back as null, in the list after the session.list() call. I'd like to do two things: 1). Get the attendees ... |