use of org.eclipse.persistence.testing.models.spatial.jgeometry.wrapped.MyGeometry in project eclipselink by eclipse-ee4j.
the class UpdateTests method testReplaceExisting.
public void testReplaceExisting() {
UnitOfWork uow = session.acquireUnitOfWork();
WrappedSpatial ws = (WrappedSpatial) uow.readObject(WrappedSpatial.class, new ExpressionBuilder().get("id").equal(1001));
assertNotNull("No WrappedSpatial instances found", ws);
MyGeometry geom = new MyGeometry(30, new SampleGeometries().simplyPolygon());
ws.setGeometry(geom);
uow.writeChanges();
uow.release();
}
Aggregations