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 > |