null « Component « JPA Q&A





1. Component with empty collection must be null?..    forum.hibernate.org

I 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.org

public 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.org

Well my class is Interval T minValue; T maxValue; .... making a custom type for every kind of instances (Integer, Long, Date, etc) is not very nice solution. I have a temporary hack do deal with the problem - it is not a stopper for me. Can you tell me why Hibernate does not to make instance of the ...

4. Why does Criteria return null component ?    forum.hibernate.org

Beginner 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.org

Hi, 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 ...