Best code examples for Hibernate ORM PersistentClass class (org.hibernate.mapping.PersistentClass)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM PersistentClass class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM PersistentClass examples from Open Source projects
This code example shows how to use the following methods: getIdentifierProperty, getProperty, getPropertyClosureSpan
96:	assertNotNull(employee.getProperty("worksOns")); 
97:	assertNotNull("property should be renamed by reveng.xml", employee.getProperty("manager")); 
-
99:	Property setProperty = employee.getProperty("managedProjects"); 
-
104:	assertEquals(4, employee.getPropertyClosureSpan()); 
105:	assertEquals("id", employee.getIdentifierProperty().getName()); 
-
217:	employee.getProperty(name); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getEntityName, getNodeName
32:	this.nodeName =pc.getNodeName(); 
33:	this.entityName =pc.getEntityName(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setClassName, setMetaAttributes
256:	PersistentClass base = new RootClass(); 
257:	base.setClassName( "Base" ); 
-
262:	assertEquals( null, c2j.getPOJOClass(base).getExtends() ); 
-
281:	base.setMetaAttributes( m ); 
282:	assertEquals( "intf,java.io.Serializable", c2j.getPOJOClass(base).getImplements() ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getIdentifier, getIdentifierProperty, getMappedClass, hasEmbeddedIdentifier, hasIdentifierMapper
83:	return new IdentifierProperty( 
84:	type, 
85:	mappedEntity.hasEmbeddedIdentifier(), 
-
96:	mappedEntity.hasEmbeddedIdentifier(), 
-
105:	* 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMetaAttribute, getProperty
126:	MetaAttribute metaAttribute = cm.getMetaAttribute( "globalmutated" ); 
-
133:	Property property = cm.getProperty( "component" ); 
-
153:	property = cm.getProperty( "sortedEmployee" ); 
-
162:	property = cm.getProperty( "anotherSet" ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getVersion, isMutable, isVersioned
This code example shows how to use the following methods: getProperty
126:	assertNotNull(pc); 
127:	Property prop = pc.getProperty("data"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getJpaEntityName, getMappedClass, getSuperMappedSuperclass, getSuperclass, hasIdentifierProperty
79:	final Class javaType = persistentClass.getMappedClass(); 
80:	context.pushEntityWorkedOn(persistentClass); 
81:	final MappedSuperclass superMappedSuperclass = persistentClass.getSuperMappedSuperclass(); 
-
87:	final PersistentClass superPersistentClass = persistentClass.getSuperclass(); 
-
95:	persistentClass.getJpaEntityName(), 
96:	persistentClass.hasIdentifierProperty(), 
97:	persistentClass.isVersioned() 
-
99:	context.registerEntityType( persistentClass, entityType ); 
100:	context.popEntityWorkedOn(persistentClass); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getIdentifier, getIdentifierMapper, getIdentifierProperty
90:	Property id_prop = pc.getIdentifierProperty(); 
91:	Component id_mapper = pc.getIdentifierMapper(); 
-
102:	mapper = new MultipleIdMapper(((Component) pc.getIdentifier()).getComponentClassName()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: nextSubclassId
This code example shows how to use the following methods: getEntityPersisterClass, getMappedClass
44:	assertEquals( "Incorrect Persister class for " + persistentClass.getMappedClass(), EntityPersister.class, 
45:	persistentClass.getEntityPersisterClass() ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getSubclassIterator, getSuperclass
47:	PersistentClass superclass = pc.getSuperclass(); 
-
53:	Subclass subclass = (Subclass) superclass.getSubclassIterator().next(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getClassName
168:	return element.getClassName().replace('.', '/') + ".hbm.xml"; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getEntityPersisterClass
131:	return create( persisterClass, ENTITY_PERSISTER_CONSTRUCTOR_ARGS, metadata, cacheAccessStrategy, factory, cfg ); 
-
133:	 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getEntityName
This code example shows how to use the following methods: getEntityName
64:	String path, 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getEntityName
21:	return new DynamicInstantiator( persistentClass.getEntityName() ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getEntityName
46:	return pc.getEntityName(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getProperty, getTable
329:	Column column = persistentClass.getTable().getColumn(new Column(propertyName)); 
-
334:	property = persistentClass.getProperty(propertyName); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getKey
54:	referencedEntity, 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getIdentifier
This code example shows how to use the following methods: getProperty
This code example shows how to use the following methods: getEntityName
20:	return new MyEntityInstantiator( persistentClass.getEntityName() ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getEntityName
57:	return new MyEntityInstantiator( persistentClass.getEntityName() ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getDiscriminatorValue, isDiscriminatorValueNotNull, isDiscriminatorValueNull
117:	if ( persistentClass.isDiscriminatorValueNull() ) { 
-
121:	if ( persistentClass.isDiscriminatorValueNotNull() ) { 
-
127:	return dtype.stringToObject( persistentClass.getDiscriminatorValue() ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getTable
217:	column.setComment(referClass.getTable().getComment() + " ID"); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getSubclassId
28:	subclassId = persistentClass.getSubclassId(); 
29:	subclassesByValue = subclassesByValue( persistentClass, subclassId ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getClassName, getTable
71:	addTableRule( mapping.getTable().getName(), mapping.getClassName() ); 
Full Snippet Info
3
CodeRank