look for <meta attribute="generated-class"> in the docs
/max
Ransel Lopez wrote:
I have my mapping files from my database. I am using hbm2java to get my java classes, but I want to get them as abstract classes and create other classes wich are extends of this classes already created.
An example: {Labor.hbm.xml} <hibernate-mapping> <class name="example.hibernate.Labor" table="LABOR"> <id name="laborid" type="java.lang.String" column="LABOR_ID" > <generator class="assigned" /> </id>
<property name="LastName" type="java.lang.String" column="LASTNAME" not-null="true" length="50" />
I want to get an AbstractLabor class as: public class AbstractLabor implements Serializable { private java.lang.String laborid; private java.lang.String lastname; ... public java.lang.String getlaborid() { return this.laborid; } public void setlaborid(java.lang.String laborid ) { this.laborid = laborid ; } ...
and another class as: public class Labor implements AbstractLabor{ }
Is there any way to do this??? Thank you very much
* Ransel López*, Web Services Developer
* Time Industrial, Inc.* An Outsourced Contractor Time and Cost Tracking Service. ----------------------------------------------------------------------------------------- direct tel: 123.456.7890 tel: 780.413.1521 fax: 780.413.0474 _ __<http://www.TimeIndustrial.com>_
-----------------------------------------------------------------------------------------
This message and attached files, if any, is (are) intended only for the addressee(s) and may
contain privileged or confidential information. Any unauthorized disclosure is strictly prohibited.
If destined to our legal counsel, this transmission is privileged communication as between an
attorney and its client.
If you have received this message in error, please notify us immediately so that we may correct
our internal records. Please then delete the original message. Thank you.
------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel