Thanks Max :)

----- Original Message -----
From: "Max Rydahl Andersen" <[EMAIL PROTECTED]>
To: "Gavin King" <[EMAIL PROTECTED]>
Sent: Sunday, November 03, 2002 1:13 AM
Subject: Re: [Hibernate] CodeGenerator bug


> > > The codegenerator assumes there are at least ONE attribute on each
> > > persistent class, and in this case it sees none
> > > because of the above mentioned "error".
> >
> > Theoretically Hibernate can persist a class with no properties ...
> > CodeGenerator should handle the *possibility* at least.
>
> I've submitted a small patch that handles that *possibility*
>
> > > I can easily fix the problem of an incomplete constructor, but it will
> > only
> > > hide the true error - that
> > > you have not created a hbm.xml that can be codegenerated (except if we
> add
> > a
> > > new feature to the codegenerator to
> > > insert af default java type for properties without a type?)
> >
> > Nah, lets not assume any default property types.
>
> Thus the codegenerator will still generate  a class, but it will not
contain
> properties without
> provided types..
>
> /max



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to