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 ********** |
From: Ara A. <ar...@ya...> - 2002-12-26 21:39:16
|
It's a piece of cake: superclasses="true" in forAllMethods/forAllFields. Ara. > -----Original Message----- > From: hib...@li... [mailto:hibernate-devel- > ad...@li...] On Behalf Of Gavin King > Sent: Thursday, December 26, 2002 10:28 AM > To: Pablo I. Lalloni > Cc: hib...@li... > Subject: RE: [Hibernate] Hibernate XDoclet task > > > This is a known limitation of the current Hibernate XDoclet > 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...] > > Sent: Tuesday, 24 December 2002 3:53 PM > > To: hib...@li... > > Subject: [Hibernate] Hibernate XDoclet task > > > > > > Hola, > > > > How do I map a superclass attribute using hibernate xdoclet task? > > > > Say you have: > > > > class X { > > private String _something; > > public String getSomething() { > > return _something; > > } > > public void setSomething(String something) { > > _something = something; > > } > > } > > > > class Y extends X { > > private String _another; > > public String getAnother() { > > return _another; > > } > > public void setAnother(String another) { > > _another = another; > > } > > > > } > > > > And want to map class Y to a single table with fields for > > "something" and for "another"... > > > > In Y.hbm.xml you would have: > > > > <class name="Y"> > > <property name="something"/> > > <property name="another"/> > > </class> > > > > How do I generate that mapping with HibernateDoclet? > > > > I this accomplishable? > > > > -- > > Saludos, > > Pablo mailto:pi...@ie... > > > > "The only thing that interferes with my learning is my > > education." Albert Einstein > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > hibernate-devel mailing list hib...@li... > > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > > > > > ********** 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 ********** > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > hibernate-devel mailing list > hib...@li... > https://lists.sourceforge.net/lists/listinfo/hibernate-devel |
From: Pablo I. L. <pi...@ie...> - 2002-12-27 03:17:57
|
Hello Gavin, Thursday, December 26, 2002, 3:58:22 AM, you wrote: GK> This is a known limitation of the current Hibernate XDoclet GK> module. Now, I think XDoclet can support remote methods defined GK> on superclasses in its ejb module, so it must be possible to GK> add support for persistent properties defined on superclasses GK> to the Hibernate module. That's right, I've used this feature many times in the past. GK> Anyone know how to attack this problem? >> -----Original Message----- >> From: Pablo I. Lalloni [mailto:pi...@gm...] >> Sent: Tuesday, 24 December 2002 3:53 PM >> To: hib...@li... >> Subject: [Hibernate] Hibernate XDoclet task >> >> >> Hola, >> >> How do I map a superclass attribute using hibernate xdoclet task? >> >> Say you have: >> >> class X { >> private String _something; >> public String getSomething() { >> return _something; >> } >> public void setSomething(String something) { >> _something = something; >> } >> } >> >> class Y extends X { >> private String _another; >> public String getAnother() { >> return _another; >> } >> public void setAnother(String another) { >> _another = another; >> } >> >> } >> >> And want to map class Y to a single table with fields for >> "something" and for "another"... >> >> In Y.hbm.xml you would have: >> >> <class name="Y"> >> <property name="something"/> >> <property name="another"/> >> </class> >> >> How do I generate that mapping with HibernateDoclet? >> >> I this accomplishable? >> >> -- >> Saludos, >> Pablo mailto:pi...@ie... >> >> "The only thing that interferes with my learning is my >> education." Albert Einstein >> >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> hibernate-devel mailing list hib...@li... >> https://lists.sourceforge.net/lists/listinfo/hibernate-devel >> GK> ********** CAUTION - Disclaimer ********** GK> This message may contain privileged and confidential GK> information. If you are not the intended recipient of this GK> message (or responsible for delivery of the message to GK> such person) you are hereby notified that any use, GK> dissemination, distribution or reproduction of this message GK> is prohibited. If you have received this message in error, GK> you should destroy it and kindly notify the sender by reply GK> e-mail. Please advise immediately if you or your employer GK> do not consent to Internet e-mail for messages of this kind. GK> Opinions, conclusions and other information in this GK> message that do not relate to the official business of GK> Expert Information Services Pty Ltd ("The Company") GK> shall be understood as neither given nor endorsed by it. GK> The Company advises that this e-mail and any attached GK> files should be scanned to detect viruses. The Company GK> accepts no liability for loss or damage (whether caused GK> by negligence or not) resulting from the use of any GK> attached files. GK> **EIS******** End of Disclaimer ********** -- Best regards, Pablo mailto:pi...@ie... |
From: Konstantin P. <kpr...@ya...> - 2002-12-27 09:33:39
|
--- Gavin King <Gav...@ex...> wrote: > > This is a known limitation of the current Hibernate > XDoclet > 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? This module is merely 2 weeks old, and in no way mature. Maybe not even alpha :) You are welcome to make proposal how it could be made better. I know a lot over xdoclet stuff ( and I'm somehow in charge of developing this module ), but not a lot about hibernate ( I'm learning ) I suggest you to add enhancement issue into JIRA ( xdoclet bug/feature tracking system): http://opensource.atlassian.com/projects/xdoclet/secure/Dashboard.jspa BTW Gavin, it's better than sourceforge one, and atlassian people are hosting open source projects for free. regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Pablo I. L. <pi...@gm...> - 2002-12-28 06:51:26
|
Here are the templates with the changes I've done to them so Hibernate XDoclet module support some "inheritable" tags as Ara suggested. See changes.txt for list of changes and some notes. This is working so far for me now, but it is NOT well tested. Friday, December 27, 2002, 6:33:36 AM, escribiste: KP> --- Gavin King <Gav...@ex...> wrote: >> >> This is a known limitation of the current Hibernate >> XDoclet >> 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? KP> This module is merely 2 weeks old, and in no way KP> mature. Maybe not even alpha :) You are welcome to KP> make KP> proposal how it could be made better. KP> I know a lot over xdoclet stuff ( and I'm somehow in KP> charge of developing this module ), but not a lot KP> about hibernate ( I'm learning ) KP> I suggest you to add enhancement issue into JIRA KP> ( xdoclet bug/feature tracking system): KP> http://opensource.atlassian.com/projects/xdoclet/secure/Dashboard.jspa KP> BTW Gavin, it's better than sourceforge one, KP> and atlassian people are hosting open source projects KP> for free. KP> regards, KP> ===== KP> Konstantin Priblouda ( ko5tik ) Freelance Software developer KP> < http://www.pribluda.de > < play java games -> http://www.yook.de > KP> < render charts online -> http://www.pribluda.de/povray/ > KP> __________________________________________________ KP> Do you Yahoo!? KP> Yahoo! Mail Plus - Powerful. Affordable. Sign up now. KP> http://mailplus.yahoo.com KP> ------------------------------------------------------- KP> This sf.net email is sponsored by:ThinkGeek KP> Welcome to geek heaven. KP> http://thinkgeek.com/sf KP> _______________________________________________ KP> hibernate-devel mailing list KP> hib...@li... KP> https://lists.sourceforge.net/lists/listinfo/hibernate-devel -- Saludos, Pablo mailto:pi...@ie... |
From: Konstantin P. <kpr...@ya...> - 2002-12-30 11:16:09
|
--- "Pablo I. Lalloni" <pi...@gm...> wrote: > > Here are the templates with the changes I've > done to them so > Hibernate XDoclet module support some > "inheritable" tags as > Ara suggested. > > See changes.txt for list of changes and some > notes. Hi Pablo, I will look into your changes and will commit them. But for future, please submit your patches to XDoclet JIRA: http://opensource.atlassian.com/projects/xdoclet/secure/Dashboard.jspa Or they will be lost in mailing lists... regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |