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

[Hibernate] Half baked idea about improved code generation

2002-09-29 Thread Andrea Aime
Looking at code generation output I feel I miss a couple of constructors, one with the full set of properties, one with only the non-null properties, that can be used to create a new bean without using all the setters. Both constructors should not contain the id in case it is generated by the fra