Package user

Examples of user.Friendship


    Transaction tr = null;;
    try{
      tr = session.beginTransaction();
      User owner = findOne(mail_owner);
      /*Hibernate.initialize(owner.getFriends());*/
      owner.addFriend(new Friendship(owner, target, 0));
      session.update(owner);
      tr.commit();
    }catch (Exception e) {
      tr.rollback();
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of user.Friendship

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.