Code example for UnionSubclass

0
		assertThat( resolver.getEntityPersisterClass( subclass ) ).isEqualTo( SingleTableOgmEntityPersister.class );
	} 
 
	@Test
	public void testTablePerClassPersistentSubclassStrategy() throws Exception {
		Subclass subclass = new UnionSubclass( new RootClass() );
		assertThat( resolver.getEntityPersisterClass( subclass ) ).isEqualTo( UnionSubclassOgmEntityPersister.class );
	} 
 
	@Test(expected = UnsupportedOperationException.class)
	public void testPersistenceClassSubclassJoinedStrategy() throws Exception {
		Subclass subclass = new JoinedSubclass( new RootClass() );
		resolver.getEntityPersisterClass( subclass );
	} 
 
	private EntityBinding rootMetadata(InheritanceType inheritanceType) {
		return new EntityBinding( inheritanceType, null );
	} 
 
	private EntityBinding subclassMetadata(InheritanceType inheritanceType) {
Connect your IDE to all the code out there  Get Codota for Java