}
@Test
public void reference() throws Exception {
MappedSchemaObject otherSimple = persistenceManager.getEntity(RefBySimplePKEntity.class);
MappedSchemaObject otherFull = persistenceManager.getEntity(RefByFullPKEntity.class);
MappedSchemaObject entity = persistenceManager.getEntity(ReferenceEntity.class);
createSchemaDo(Arrays.asList(RefBySimplePKEntity.class, RefByFullPKEntity.class, ReferenceEntity.class));
Assert.assertEquals(entity.getAttributeNames().size(), 4);
Assert.assertEquals(otherSimple.getAttributeNames().size(), 3);
Assert.assertEquals(otherFull.getAttributeNames().size(), 7);
Assert.assertEquals(entity.getAllColumns().length, 8);
Assert.assertEquals(otherSimple.getAllColumns().length, 3);
Assert.assertEquals(otherFull.getAllColumns().length, 7);
PersistenceSession session = persistenceManager.createSession();
try {