| How to create an Index on your Entity Beans? |
| Written by Mark S. | |||||
|
You can use the @Index annotation with EJB3 in Hibernate 3.2.X to create indexes automatically when an entity is deployed. This annotation can be put either on the Table annotation or directly on the entity property. Examples: @javax.persistence.Table(name = "items") @Index(name = "IDX", columnNames = { "idItem" })
JBoss.org Search
Custom Search
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |


