use of org.apache.tapestry5.jpa.test.entities.ThingOne in project tapestry-5 by apache.
the class TopLevelServiceImpl method createThingOneAndTwo.
@Override
@CommitAfter
public void createThingOneAndTwo(String nameOne, String nameTwo) {
ThingOne thingOne = new ThingOne();
thingOne.setName(nameOne);
em.persist(thingOne);
nestedService.createThingTwo(nameTwo);
}
use of org.apache.tapestry5.jpa.test.entities.ThingOne in project tapestry-5 by apache.
the class TopLevelServiceImpl method createThingOneThenTwo.
@Override
@CommitAfter
public void createThingOneThenTwo(final String nameOne, final String nameTwo) {
entityTransactionManager.invokeAfterCommit(null, new Invokable<Boolean>() {
@Override
public Boolean invoke() {
nestedService.createThingTwo(nameTwo);
return true;
}
});
ThingOne thingOne = new ThingOne();
thingOne.setName(nameOne);
em.persist(thingOne);
}
use of org.apache.tapestry5.jpa.test.entities.ThingOne in project tapestry-5 by apache.
the class JpaTest method trySomething.
@Test
public void trySomething() {
ThingOne thingOne = new ThingOne();
thingOne.setId(1);
PersistedEntity entity = JpaInternalUtils.convertApplicationValueToPersisted(entityManagerManager, thingOne);
}
Aggregations