Package org.apache.sirona.jpa.entity

Examples of org.apache.sirona.jpa.entity.Person


                final EntityManager em = emf.createEntityManager();
                try {
                    final EntityTransaction transaction = em.getTransaction();
                    transaction.begin();
                    try {
                        final Person p = new Person();
                        p.setName("sirona");

                        em.persist(p);
                        transaction.commit();
                    } catch (final Exception e) {
                        transaction.rollback();
View Full Code Here

TOP

Related Classes of org.apache.sirona.jpa.entity.Person

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.