From: Gavin K. <Gav...@ex...> - 2002-12-26 06:58:26
|
This is a known limitation of the current Hibernate XDoclet=20 module. Now, I think XDoclet can support remote methods defined on superclasses in its ejb module, so it must be possible to add support for persistent properties defined on superclasses to the Hibernate module. Anyone know how to attack this problem? > -----Original Message----- > From: Pablo I. Lalloni [mailto:pi...@gm...]=20 > Sent: Tuesday, 24 December 2002 3:53 PM > To: hib...@li... > Subject: [Hibernate] Hibernate XDoclet task >=20 >=20 > Hola, >=20 > How do I map a superclass attribute using hibernate xdoclet task? >=20 > Say you have: >=20 > class X { > private String _something; > public String getSomething() { > return _something; > } > public void setSomething(String something) { > _something =3D something; > } > } >=20 > class Y extends X { > private String _another; > public String getAnother() { > return _another; > } > public void setAnother(String another) { > _another =3D another; > } > =20 > } >=20 > And want to map class Y to a single table with fields for > "something" and for "another"... >=20 > In Y.hbm.xml you would have: >=20 > <class name=3D"Y"> > <property name=3D"something"/> > <property name=3D"another"/> > </class> >=20 > How do I generate that mapping with HibernateDoclet? > =20 > I this accomplishable? >=20 > --=20 > Saludos, > Pablo mailto:pi...@ie... >=20 > "The only thing that interferes with my learning is my=20 > education." Albert Einstein >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf=20 > _______________________________________________ > hibernate-devel mailing list hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel >=20 ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |