Update of /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30251/samples/src/java/test/hibernate30
Added Files:
Person.java
Log Message:
XDT-1257: join and subelements aligned with hibernate 3.0 DTD
--- NEW FILE: Person.java ---
package test.hibernate30;
/**
* @hibernate.class table="PEOPLE"
*/
public class Person {
private Long addressId;
private String name;
private String street;
private String city;
/**
* @hibernate.id generator-class="assigned"
*/
public Long getAddressId() {
return this.addressId;
}
public void setAddressId(Long addressId) {
this.addressId = addressId;
}
/**
* @hibernate.property column="NAME"
*/
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
/**
* @hibernate.join table="ADDRESS"
* schema="THINGS"
* catalog="CAT"
* subselect="sql subselect"
* fetch="select"
* inverse="false"
* optional="true"
* @hibernate.key column="ADDRESS_ID"
* property-ref="property ref"
* foreign-key="foreign key"
* on-delete="noaction"
* not-null="true"
* update="true"
* unique="true"
* @hibernate.property column="STREET"
*/
public String getStreet() {
return this.street;
}
public void setString(String street) {
this.street = street;
}
/**
* @hibernate.join table="ADDRESS"
* @hibernate.key column="ADDRESS_ID"
* @hibernate.property column="CITY"
*/
public String getCity() {
return this.city;
}
public void setCity(String city) {
this.city = city;
}
}
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel