Examples of insertOrUpdate()


Examples of info.archinnov.achilles.persistence.Batch.insertOrUpdate()

        // Start batch
        Batch batch = manager.createBatch();
        batch.startBatch();

        batch.startBatch(TWO);
        batch.insertOrUpdate(tweet2);

        try {
            batch.endBatch();
        } catch (Exception e) {
            assertThatBatchContextHasBeenReset(batch);
View Full Code Here

Examples of info.archinnov.achilles.persistence.Batch.insertOrUpdate()

            assertThat(manager.find(Tweet.class, tweet.getId())).isNull();
        }

        // batch should reinit batch context
        batch.insertOrUpdate(user);
        batch.endBatch();

        User foundUser = manager.find(User.class, user.getId());
        assertThat(foundUser.getFirstname()).isEqualTo("firstname");
        assertThat(foundUser.getLastname()).isEqualTo("lastname");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.