18 package org.turro.contacts;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.Id;
24 import javax.persistence.JoinColumn;
25 import javax.persistence.ManyToOne;
26 import org.turro.string.ObjectString;
33 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
34 public class FieldValue implements java.io.Serializable {
37 @GeneratedValue(generator =
"hibernate-uuid")
38 @Column(name=
"IDENTIFIER")
41 @Column(name=
"FIELD_VALUE")
48 @JoinColumn(name=
"CONTACT_FK")
49 private org.turro.contacts.Contact contact;
56 this.contact = contact;
64 this.fieldDef = fieldDef;
86 value = ObjectString.formatNativeObject(obj,
false);
90 return ObjectString.parseNativeString(value, fieldDef.getJavaClass(),
false);