Index not being generated on schema update in JBoss
Issue
I am creating an Seam Entity bean. One of the columns will be a target of a search and hence I need to create an Index on it. Found a reference for a Hibernate annotation and tried it.
@Column( name="CALL_NAME", nullable=false )
@NotNull
@Length( max=20 )
@org.hibernate.annotations.Index(name = "CALL_NAME_INDEX")
public String getName() {
return name;
}
However the dynamically created but the index is not. Is there another way?
Environment
JBoss Enterprise Application Platfor (EAP) 5.0.1.GA
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
