Joined: Thu Feb 24, 2005 8:01 am Posts: 3
|
Hi,
In the following example (Hibernate doc)
<class name="eg.Person" table="person">
<id name="Key" column="pid" type="string">
<generator class="uuid.hex"/>
</id>
<property name="birthday" type="date"/>
<component name="Name" class="eg.Name">
<property name="initial"/>
<property name="first"/>
<property name="last"/>
</component>
</class>
public class Person {
private java.util.Date birthday;
private Name name;
private String key;
//.....
}
If I change the java object to the following // just for example
public class Person {
private java.util.Date birthday;
private Name key; //Change the type of the primary key from String to eg.Name
//....
}
What would be the resulting mapping file ?
|
|