Package com.cin.entity

Examples of com.cin.entity.Invitation


 
 
 
  public InvitationDTO addInvitation(InvitationDTO invitation){
   
     Invitation invitationEJB = new Invitation();
     if(invitation.getAgent() != null ){
       int ssn = invitation.getAgent().getSsn();
       invitationEJB.setAgent((Userrecord) manager.find(Userrecord.class, ssn));
     }
     if(invitation.getCustomer() != null ){
       int ssn = invitation.getCustomer().getSsn();
       invitationEJB.setCustomer((Userrecord) manager.find(Userrecord.class, ssn));
     }
     invitationEJB.setDateCreated(invitation.getDateCreated());
    
    persist(invitationEJB);
    return new InvitationDTO(invitationEJB);
  }
View Full Code Here

TOP

Related Classes of com.cin.entity.Invitation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.