From: Juozas B. <ba...@ma...> - 2002-11-07 17:46:14
|
Hi, I found this in archyve. It is bug in cglib, updated rc2 has fix for "writeReplace", but it has bug in "MyClass.class" implementation, it dublicates "findClass(String name)", Class init hasbug too, it fails if argument count > 6 in method "myMethod(int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7)" It is fixed in cvs version, I will upload beta2 on weekend. |
From: Gavin K. <ga...@ap...> - 2002-11-07 23:04:17
|
Thanks Juozas, looking forward to the new version.... ----- Original Message ----- From: "Juozas Baliuka" <ba...@ma...> To: <hib...@li...> Sent: Friday, November 08, 2002 5:45 AM Subject: [Hibernate] Re: Glarch$$EnhancedByCGLIB$$3 (Repeative method name/signature) and deadlock > Hi, > I found this in archyve. It is bug in cglib, updated rc2 has fix for > "writeReplace", but it has bug > in "MyClass.class" implementation, it dublicates "findClass(String name)", > Class init hasbug too, it fails if argument count > 6 in method > "myMethod(int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7)" > It is fixed in cvs version, > I will upload beta2 on weekend. > > > > ------------------------------------------------------- > 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 > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Aapo L. <aap...@pr...> - 2002-11-08 01:57:54
|
Is it possible to modify CodeGenerator tool so that when I have property type set to "true_false" or "yes_no" and name set to "something" eg.: <property name="something" column="something" type="true_false" not-null="true" unique="false"/> to generate something like this: public boolean isSomething() { return this.something; } public void setSomething(boolean something) { this.something = something; } Currently it generates getter eg.: public boolean getSomething() { return this.something; } Kind Regards Aapo Laakkonen |
From: Gavin K. <ga...@ap...> - 2002-11-08 03:32:35
|
Yeah that would make more sense. Do you wanna produce a patch? (Do we need to worry about backward compatibility on this?) P.S. We also need someone to patch CodeGenerator to handle <one-to-one> associations. They are ignored at present, apparently. ----- Original Message ----- From: "Aapo Laakkonen" <aap...@pr...> To: <hib...@li...> Sent: Friday, November 08, 2002 12:54 AM Subject: [Hibernate] CodeGenerator > Is it possible to modify CodeGenerator tool so that when I have property > type set to "true_false" or "yes_no" and name set to "something" eg.: > > <property name="something" column="something" type="true_false" > not-null="true" unique="false"/> > > to generate something like this: > > public boolean isSomething() { > return this.something; > } > > public void setSomething(boolean something) { > this.something = something; > } > > Currently it generates getter eg.: > > public boolean getSomething() { > return this.something; > } > > Kind Regards > Aapo Laakkonen > > > > ------------------------------------------------------- > 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 > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Max R. A. <ma...@eo...> - 2002-11-08 07:20:57
|
> P.S. We also need someone to patch CodeGenerator to handle <one-to-one> > associations. They are ignored at present, apparently. And sadly it is more than just <one-to-one> that is ignored - and one of the primary reasons is that the CodeGenerator is doing it is own parsing of the hbm.xml files thus it is not at all in sync with the changes that have been going on regarding the dtd and new stuff that has changed semantics/syntax of the different tags :( That is why i've been searching for a way to have a "unified" parsing of hbm.xml into some metadata structure that does not realy on the referred classes to be available on the classpath - that would make the codegenerator, the mapping tool etc. much more in sync with the core hibernate engine. just my 3 cents /max > ----- Original Message ----- > From: "Aapo Laakkonen" <aap...@pr...> > To: <hib...@li...> > Sent: Friday, November 08, 2002 12:54 AM > Subject: [Hibernate] CodeGenerator > > > > Is it possible to modify CodeGenerator tool so that when I have property > > type set to "true_false" or "yes_no" and name set to "something" eg.: > > > > <property name="something" column="something" type="true_false" > > not-null="true" unique="false"/> > > > > to generate something like this: > > > > public boolean isSomething() { > > return this.something; > > } > > > > public void setSomething(boolean something) { > > this.something = something; > > } > > > > Currently it generates getter eg.: > > > > public boolean getSomething() { > > return this.something; > > } > > > > Kind Regards > > Aapo Laakkonen > > > > > > > > ------------------------------------------------------- > > 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 > > hib...@li... > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > ------------------------------------------------------- > 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 > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > |