grails « Annotation « JPA Q&A





1. Grails Ignoring @Id Annotation    stackoverflow.com

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    stackoverflow.com

Can any1 explain me what hibernate annotations are for? I'm learning hibernate/grails and can't understand what it does. Check here: http://grails.org/doc/1.0.x/guide/15.%20Grails%20and%20Hibernate.html. Thanks in advanced, J

3. How to use Hibernate @Index annotation properly?    stackoverflow.com

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 ...