field « HBM « JPA Q&A





1. is it mandatory to have some key field in hbm    stackoverflow.com

i am using hibernate as ORM tool, i am facing one problem, i need to map a Global Temporary table to HBM. Now, the problem is with key, i know that ...

2. Tell Hibernate's hbm2ddl to add MySQL enum columns for @Enumerated annotated fields    stackoverflow.com

I'm creating a DB table using hbm2ddl with Java code similar to the following:

@Entity
public  class Filter {
    public enum Type {
       ...

3. Creating a non-mapped field in an hbm.xml mapping file?    forum.hibernate.org

Hi, I've been trying to find out how to add a non-persisted field to my hbm.xml mapping file. Hibernate tools are used to create the entities from the hbm.xml files. I understand that I can add a @Transient annotation in the entity object manually, but if I further make any changes in the hbm file and regenerate it, then it will ...

4. Hibernate HBM File - Map one field to multiple data types    forum.hibernate.org

Hi, We need to support DB2 and Postgres databases. Having investigated this there is one fundamental difference between the two. In Postgres a Boolean type is allowed and in DB2 it is not. What we have to do (more then likly) is to convert Boolean fields to SmallInt in DB2. However, this poses a problem for our Hibernate API when we ...

5. annotations hbm2ddl misses some fields in ddl creation    forum.hibernate.org

Hibernate version: 3.2 cr3 Hibernate annotation version: 3.2 cr1 I'm using hbm2ddl to create my database tables via annotations. This tool seems to work fine except that some fields are being skipped. It seems that this tool only generates database fields for functions that either start with 'get' or 'is', but misses other important fields such as ones that start with ...

6. Hbm generating invalid field name when calling SP    forum.hibernate.org

I'm using hibernate from w/i JBoss. When I invoke the SP, it seems to execute ok, but mapping the data from the resultset back into Hibernate fails miserably. The ddl_* SPs simply return a resultset and take no parameters. Though there is always a RETURN_RESULT from a SP, I'm discarding it. Down below in my mapping document, you'll note there are ...

7. hbm.xml for the class Cat has a cats:List field.    forum.hibernate.org

sq_cat ...