RE: [Hibernate] NullPointerException on Session.find

2002-09-30 Thread Boring, Jeff W, ALBAS
>Nothing obviously wrong in what you have given so far.< That's good news. At least I'm not totally off track! > you will have to show a bit more code than that< here it is: public class JWBDemo { private static SessionFactory sf; private static Datastore ds;

Re: [Hibernate] Postgres NUMERIC and other problems

2002-09-30 Thread Andrea Aime
Gavin King wrote: Basically, there are two problems: - the same foreign key is generated two times (artplFK1, artplFK2) That won't happen if you declare one end of the bidirectional association with readonly="true" which is the preferred style. Ah, I see. But if I allow editing on both sid

[Hibernate] Discussion of redesign

2002-09-30 Thread Gavin King
I'm really happy with the recent changes I've done to make Hibernate more extensible and more understandable. *Finally* the SessionImpl class is starting to get smaller instead of bigger... The main points of redesign: * pulled all querying and loading functionality out of SessionImpl into the Loa

Re: [Hibernate] Half baked idea about improved code generation

2002-09-30 Thread Gavin King
> - sets miss then not-null attribute, so I cannot judge if > they are to be included in the minimal constructor or not I *think* its reasonable to actually create a HashSet, ArrayList, etc in the minimal constructor. > (the not-null attribute should be added to set, bag, ...) H I'm not