I have two entity class, Tenant and Contact. is it the right way? if
not can anyone share a sample.
@Entity
public class Tenant {
@Version()
private Long version;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long tenantId;
@OneToOne(cascade=CascadeType.ALL)
private Contact contact;
.......
}
@Entity
public class Contact {
@Version
private Long version;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long contactId;
.....
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---