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 |