Hibernate ORM MappedSuperclass - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM MappedSuperclass class.

This code example shows how to use the following methods:getMappedClass, getSuperMappedSuperclass, getSuperPersistentClass, hasIdentifierProperty, isVersioned
	//TODO remove / reduce @SW scope 
	@SuppressWarnings( "unchecked" ) 
	private static MappedSuperclassTypeImpl<?> buildMappedSuperclassType(MappedSuperclass mappedSuperclass,
																		 MetadataContext context) {
		final MappedSuperclass superMappedSuperclass = mappedSuperclass.getSuperMappedSuperclass();
		AbstractIdentifiableType<?> superType = superMappedSuperclass == null
				? null 
				: locateOrBuildMappedsuperclassType( superMappedSuperclass, context );
		//no mappedSuperclass, check for a super entity 
		if (superType == null) {
			final PersistentClass superPersistentClass = mappedSuperclass.getSuperPersistentClass();
			superType = superPersistentClass == null
					? null 
					: locateOrBuildEntityType( superPersistentClass, context );
		final Class javaType = mappedSuperclass.getMappedClass();
		MappedSuperclassTypeImpl mappedSuperclassType = new MappedSuperclassTypeImpl(

See Code Examples for Hibernate ORM MappedSuperclass Methods: