[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6908) org.hibernate.metamodel.source.annotations.attribute.ColumnValues#applyColumnValues() does not work with 'unique' attribute

John Verhaeg (JIRA) noreply at atlassian.com
Tue Apr 24 15:32:48 EDT 2012


    [ https://hibernate.onjira.com/browse/HHH-6908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46408#comment-46408 ] 

John Verhaeg commented on HHH-6908:
-----------------------------------

If you could attach a test case depicting how the unique attribute does not work, I'll try to address this.  Thanks.

> org.hibernate.metamodel.source.annotations.attribute.ColumnValues#applyColumnValues() does not work with 'unique' attribute
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-6908
>                 URL: https://hibernate.onjira.com/browse/HHH-6908
>             Project: Hibernate ORM
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 4.0.0.Final
>            Reporter: Peter Ertl
>             Fix For: 5.0.0
>
>
> ColumnValues contains this
> 		AnnotationValue uniqueValue = columnAnnotation.value( "unique" );
> 		if ( uniqueValue != null ) {
> 			this.unique = nameValue.asBoolean();
> 		}
> when in fact it should be
> 		AnnotationValue uniqueValue = columnAnnotation.value( "unique" );
> 		if ( uniqueValue != null ) {
> 			this.unique = uniqueValue.asBoolean();
> 		}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list