uniqueConstraints={@UniqueConstraint does not work inside the @JoinTable
------------------------------------------------------------------------
Key: HHH-3384
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3384
Project: Hibernate3
Issue Type: Bug
Affects Versions: 3.3.0.CR1
Reporter: Shankar Mandal
I have a Entity where I am trying to put a Unique constraint on the columns of a Join
Table. Eclipse does not compile and gives error: UniqueConstraint cannot resolved to a
Type
Classpath is correctly set because I can use the @UniqueConstraint inside the @Table
annotation.
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(name="ENVSLifecycle_NextLifecycle",
uniqueConstraints={@UniqueConstraint(columnNames={"LIFECYCLE_ID",
"NEXTLIFECYCLES_ID"})}
)
public Set<Lifecycle> getNextLifecycles() {
return nextLifecycles;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira