assertEquals(PersistenceState.NEW, transientDO.getPersistenceState());
}
public void testToOneTargetPersistent() throws Exception {
DataContext context = createDataContext();
Painting transientDO = context.newObject(Painting.class);
Artist persistentDO = new Artist();
transientDO.setToOneTarget(Painting.TO_ARTIST_PROPERTY, persistentDO, false);
assertEquals(PersistenceState.NEW, transientDO.getPersistenceState());