column « JBoss « JPA Q&A





1. How to define index by several columns in hibernate entity?    stackoverflow.com

Morning. I need to add indexing in hibernate entity. As I know it is possible to do using @Index annotation to specify index for separate column but I need an index for ...

2. Odd behavior when using uppercase(combined with underscore) for column names in Hibernate(deployed on JBoss 5.1.0), for MySql DB    stackoverflow.com

I'm trying to specify column name using the @Column annotation:

@Column(name="ID") //also tried with @Column(name="[ID]") and @Column(name=""\ID"\")
private int id; 

@Column(name="TINY_IMAGE")
private String tinyUrl; 
But, the hibernate (or MySQL?) gives the names 'id' and ...