Replacement For @Element annotation and mappedBy, defaultFetchGroup of JDO with Objectify

38 views
Skip to first unread message

Mangesh Mandavgane

unread,
Jan 31, 2024, 9:53:40 AMJan 31
to objectify-appengine
Hello There, 
 
Is Anyone knows How to replace @Element annotation and mappedBy, defaultFetchGroup of JDO with Objectify. Please check below example.
 
@Entity
public class TestGCPClass1 implements Serializable {
 
private Long pId;
 
@Index
private String name;
 
//This is below JDO representation, Wants to replace with Objectify
 
@Persistent(mappedBy = "testGcpClass1", defaultFetchGroup = "true")
@Element(dependent = "true")
private Set<TestUserClass1> users;
 
//This is below JDO representation, Wants to replace with Objectify
 
@Persistent(mappedBy = "testGcpClass1", defaultFetchGroup = "true")
@Element(dependent = "true")
private Set<TestGroupClass2> group;
 
}
 
 
@Entity
public class TestUserClass1 implements Serializable {
 
private Long pId;
 
@Index
private String name;
 
//This is below JDO representation, Wants to replace with Objectify
@Persistent
private TestGCPClass1 testGcpClass1;
 
}
Likes

Jeff Schnitzer

unread,
Feb 5, 2024, 4:06:39 PMFeb 5
to objectify...@googlegroups.com
There's not a lot of institutional knowledge of JDO left in the world. Probably none on this list.

If you explain what @Element does, maybe I can tell you how to do it with Objectify?

Jeff

--
You received this message because you are subscribed to the Google Groups "objectify-appengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectify-appen...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/objectify-appengine/f7beaf35-c4cd-40ad-b7ff-9c1e250bc0e6n%40googlegroups.com.

Mangesh Mandavgane

unread,
Feb 6, 2024, 10:15:17 AMFeb 6
to objectify-appengine
Ok Jeff,

Please, share your thoughts regarding this with Objectify. 

Mat Jaggard

unread,
Feb 6, 2024, 11:20:40 AMFeb 6
to objectify...@googlegroups.com
@Mangesh you haven't answered Jeff's question. I used to use JDO but those days are so long ago that I don't remember any of it. I have no clue what @Element does except that it seems to be related to collections. If you explain what you are actually trying to do then it's possible there's an answer available otherwise you're asking volunteers to go and learn about JDO in order to start answering your question.

Reply all
Reply to author
Forward
0 new messages