Hibernate ORM Mappings - 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 Mappings class.

This code example shows how to use the following methods:getTypeResolver
	private boolean embedded;
	private boolean ignoreNotFound;
 
	private EntityType getEntityType() {
		return mappings.getTypeResolver().getTypeFactory().manyToOne(
				getReferencedEntityName(), 
				null,  
				false, 
				false, 
				isEmbedded(),
				isIgnoreNotFound(),
				false 
			); 
	} 
 
	public OneToMany(Mappings mappings, PersistentClass owner) throws MappingException {
		this.mappings = mappings;
		this.referencingTable = (owner==null) ? null : owner.getTable();
	} 
 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTypeResolver
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTypeResolver
			); 
		} 
		else { 
			return getMappings().getTypeResolver().getTypeFactory().oneToOne(
					getReferencedEntityName(), 
					foreignKeyType, 
					referencedPropertyName,
					isLazy(),
					isUnwrapProxy(),
					isEmbedded(),
					entityName,
					propertyName
			); 
		} 
	} 
 
	public void createForeignKey() throws MappingException {
		if ( constrained && referencedPropertyName==null) {
			//TODO: handle the case of a foreign key to something other than the pk 
			createForeignKeyOfEntity( ( (EntityType) getType() ).getAssociatedEntityName() );
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTypeResolver
		super( mappings, table );
	} 
 
	public Type getType() throws MappingException {
		return getMappings().getTypeResolver().getTypeFactory().manyToOne(
				getReferencedEntityName(), 
				getReferencedPropertyName(),
				isLazy(),
				isUnwrapProxy(),
				isEmbedded(),
				isIgnoreNotFound(),
				isLogicalOneToOne
		); 
	} 
 
	public void createForeignKey() throws MappingException {
		// the case of a foreign key to something other than the pk is handled in createPropertyRefConstraints 
		if (referencedPropertyName==null && !hasFormula() ) {
			createForeignKeyOfEntity( ( (EntityType) getType() ).getAssociatedEntityName() );
		}  
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTypeResolver
This code example shows how to use the following methods:getTypeResolver
		} 
	} 
 
	@Override 
    public CollectionType getDefaultCollectionType() throws MappingException {
		return getMappings().getTypeResolver()
				.getTypeFactory()
				.array( getRole(), getReferencedPropertyName(), isEmbedded(), getElementClass() );
	} 
 
	@Override 
    public boolean isArray() { 
		return true; 
	} 
 
	/** 
	 * @return Returns the elementClassName. 
	 */ 
	public String getElementClassName() {
		return elementClassName;
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTypeResolver
			return getMappings().getTypeResolver()
					.getTypeFactory()
					.orderedMap( getRole(), getReferencedPropertyName(), isEmbedded() );
		} 
		else { 
			return getMappings().getTypeResolver()
					.getTypeFactory()
					.map( getRole(), getReferencedPropertyName(), isEmbedded() );
		} 
	} 
 
 
	public void createAllKeys() throws MappingException {
		super.createAllKeys(); 
		if ( !isInverse() ) getIndex().createForeignKey();
	} 
 
	public Object accept(ValueVisitor visitor) {
		return visitor.accept(this);
	} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTypeResolver
	public List(Mappings mappings, PersistentClass owner) {
		super( mappings, owner );
	} 
 
	public CollectionType getDefaultCollectionType() throws MappingException {
		return getMappings().getTypeResolver()
				.getTypeFactory()
				.list( getRole(), getReferencedPropertyName(), isEmbedded() );
	} 
	 
	public Object accept(ValueVisitor visitor) {
		return visitor.accept(this);
	} 
 
	public int getBaseIndex() { 
		return baseIndex;
	} 
	 
	public void setBaseIndex(int baseIndex) {
		this.baseIndex = baseIndex;
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTypeResolver
	public Bag(Mappings mappings, PersistentClass owner) {
		super( mappings, owner );
	} 
 
	public CollectionType getDefaultCollectionType() {
		return getMappings().getTypeResolver()
				.getTypeFactory()
				.bag( getRole(), getReferencedPropertyName(), isEmbedded() );
	} 
 
	void createPrimaryKey() { 
		//create an index on the key columns?? 
	} 
 
	public Object accept(ValueVisitor visitor) {
		return visitor.accept(this);
	} 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getTypeResolver
	public IdentifierBag(Mappings mappings, PersistentClass owner) {
		super( mappings, owner );
	} 
 
	public CollectionType getDefaultCollectionType() {
		return getMappings().getTypeResolver()
				.getTypeFactory()
				.idbag( getRole(), getReferencedPropertyName(), isEmbedded() );
	} 
 
	public Object accept(ValueVisitor visitor) {
		return visitor.accept(this);
	}	 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Hibernate ORM Mappings Methods: