I have 2 entities UserDepartment and User, which are defined as
follows

@Entity
public class UserDepartment extends DomainObject<Long, UserDepartment>
{

        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private Long departmentId;

and

@Entity
public class User extends DomainObject<Long, User> {

        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value
= "true")
        private String encodedKey;

        @Extension(vendorName = "datanucleus", key = "gae.pk-id", value =
"true")
        private Long userId;

        private String username;
@ManyToOne(fetch = FetchType.EAGER)
        private UserDepartment userDepartment;

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to