From: Pablo I. L. <pi...@gm...> - 2002-12-24 04:54:29
|
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 |