Hi,
I have following Objects:
1) EventDb
2) ContactInfo
3) KeynoteInfo etc
there is parent child relationship from Event --> ContactInfo, KeynoteInfo.
Code:
public class EventDb implements java.io.Serializable {
private String genericEventId;
private EventDb eventDb;
private String eventName;
private String eventYear;
.......
private List<ContactInfo> contactInfos = new ArrayList<ContactInfo>(0);
private List<KeynoteInfo> keynoteInfos = new ArrayList<KeynoteInfo>(0);
// other childs...
public EventDb() {
}
// code......
public class ContactInfo implements java.io.Serializable {
private String contactId;
private EventDb eventDb;
private String contactName;
private Character isDuplicated;
.......
public ContactInfo() {
}
// remaining code..
same way KeynoteInfo POJO.
My requirement:
I need to duplicate the data of selected EventDb and its childs as a new record in the database.
please tell me how to do this duplicate operation.
thanks in advance.