Package com.sun.jersey.samples.bookmark_em.entities

Examples of com.sun.jersey.samples.bookmark_em.entities.UserEntity


        }
       
        final boolean newRecord = (null == userEntity); // insert or update ?
       
        if (newRecord) { // new user record to be inserted
            userEntity = new UserEntity();
            userEntity.setUserid(userid);
        }
        userEntity.setUsername(jsonEntity.getString("username"));
        userEntity.setEmail(jsonEntity.getString("email"));
        userEntity.setPassword(jsonEntity.getString("password"));
View Full Code Here


   
    @DELETE
    public void deleteBookmark() {
        TransactionManager.manage(utx, new Transactional(em) { public void transact() {
            em.persist(bookmarkEntity);
            UserEntity userEntity = bookmarkEntity.getUserEntity();
            userEntity.getBookmarkEntityCollection().remove(bookmarkEntity);
            em.merge(userEntity);
            em.remove(bookmarkEntity);
        }});
    }   
View Full Code Here

TOP

Related Classes of com.sun.jersey.samples.bookmark_em.entities.UserEntity

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.