Does @JoinTable has a property of "table" or not?
Posted
by Kent Chen
on Stack Overflow
See other posts from Stack Overflow
or by Kent Chen
Published on 2010-03-26T02:39:25Z
Indexed on
2010/03/26
2:43 UTC
Read the original article
Hit count: 389
The following is copied from hibernate's document. (http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/#d0e2770)
@CollectionOfElements
@JoinTable(
table=@Table(name="BoyFavoriteNumbers"),
joinColumns = @JoinColumn(name="BoyId")
)
@Column(name="favoriteNumber", nullable=false)
However, when I put this in practice, I just found that @JoinTable has no "table" property, instead it has a "name" property to specify the table name. But I need "table" property to specify indexes.
What's going on here? I'm almost driven crazy!
© Stack Overflow or respective owner