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( 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
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 );
	} 
} 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: