Package com.impetus.client.couchdb.entities

Examples of com.impetus.client.couchdb.entities.CouchDBPersonJTAEntity


        Runnable r = new Runnable()
        {
            @Override
            public void run()
            {
                CouchDBPersonJTAEntity person = new CouchDBPersonJTAEntity();
                person.setPersonId("1_p" + i);
                person.setPersonName("crossdata-store");
                CouchDBAddressJTAEntity address = new CouchDBAddressJTAEntity();
                address.setAddressId("1_a" + i);
                address.setStreet("my street");
                person.setAddress(address);
                try
                {
                    em.persist(person);
                }
                catch (Exception ex)
View Full Code Here


    {
        userTransaction = (UserTransaction) initialContext.lookup("java:comp/UserTransaction");
        em.setFlushMode(FlushModeType.COMMIT);

        userTransaction.begin();
        CouchDBPersonJTAEntity person = new CouchDBPersonJTAEntity();
        person.setPersonId("1_p");
        person.setPersonName("crossdata-store");
        CouchDBAddressJTAEntity address = new CouchDBAddressJTAEntity();
        address.setAddressId("1_a");
        address.setStreet("my street");
        person.setAddress(address);
        try
        {
            em.persist(person);
        }
        catch (Exception ex)
View Full Code Here

TOP

Related Classes of com.impetus.client.couchdb.entities.CouchDBPersonJTAEntity

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.