grails « Annotation « JPA Q&A

1. Grails Ignoring @Id Annotation

I'm trying to use an existing database with Grails. My DataSource.groovy starts with this:

import org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration
dataSource {
    configClass = GrailsAnnotationConfiguration.class
    pooled = true

2. Grails Hibernate annotations

Can any1 explain me what hibernate annotations are for? I'm learning hibernate/grails and can't understand what it does. Check here: Thanks in advanced, J

3. How to use Hibernate @Index annotation properly?

i have a java class used as an entity that has 2 classes that inherit from it. this class has some indices but these indices didn't appear in the database. this ...