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:[EMAIL PROTECTED] 
>> Sent: Tuesday, 24 December 2002 3:53 PM
>> To: [EMAIL PROTECTED]
>> 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:[EMAIL PROTECTED]
>> 
>> "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 [EMAIL PROTECTED]
>> 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:[EMAIL PROTECTED]





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to