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

This code example shows how to use the following methods:
	@Override 
	public String resolveHibernateTypeName(AnnotationInstance enumeratedAnnotation) { 
		boolean isEnum = mappedAttribute.getAttributeType().isEnum(); 
		if ( !isEnum ) { 
			if ( enumeratedAnnotation != null ) { 
				throw new AnnotationException( "Attribute " + mappedAttribute.getName() + " is not a Enumerated type, but has a @Enumerated annotation." ); 
			} 
			else { 
				return null; 
			} 
		} 
		return EnumType.class.getName(); 
	} 
 
	@Override 
	protected Map<String, String> resolveHibernateTypeParameters(AnnotationInstance annotationInstance) { 
		HashMap<String, String> typeParameters = new HashMap<String, String>(); 
		typeParameters.put( EnumType.ENUM, mappedAttribute.getAttributeType().getName() ); 
		if ( annotationInstance != null ) { 
			javax.persistence.EnumType enumType = JandexHelper.getEnumValue( 
4
CodeRank
This code example shows how to use the following methods:
This code example shows how to use the following methods:
		); 
		if ( column == null ) {
			throw new AnnotationException(
					"@Index references a unknown column: " + columnName
			); 
		} 
		if ( unique )
			table.getOrCreateUniqueKey( indexName ).addColumn( column );
		else 
			table.getOrCreateIndex( indexName ).addColumn( column );
	} 
} 
4
CodeRank
This code example shows how to use the following methods: