Package org.glassfish.jersey.examples.bookmark.entity

Examples of org.glassfish.jersey.examples.bookmark.entity.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(new Transactional(em) {
            public void transact() {
                UserEntity userEntity = bookmarkEntity.getUserEntity();
                userEntity.getBookmarkEntityCollection().remove(bookmarkEntity);
                em.merge(userEntity);
                em.remove(bookmarkEntity);
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.examples.bookmark.entity.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.