I have a database containing approx. 200 tables. I use jboss-ide to automatically generate hibernate classes from the database using the File->New->Other->Hibernate->Hibernate Mapping file wizard of jboss-ide 1.6.
the problem i'm facing is that the .hbm.xml file generated does not contain all the propertiese it's supposed to. what's also surprising is that other hibernate files generated contain all the properties they're supposed to.
as an example, here is the layout of a table :
create table NOYPS_CANAL ( CODE_CANAL VARCHAR2(25) not null, LBL_CANAL VARCHAR2(100), AUTRE_COMPAGNIE VARCHAR2(1), CODE_UTI VARCHAR2(25), DTE_UTI DATE, DTE_UTI_MODIF DATE, CODE_UTI_MODIF VARCHAR2(25), constraint PK_NOYPS_CANAL primary key (CODE_CANAL) );
and here is the .hbm.xml file generated :
<class
name="NoypsCanal"
table="NOYPS_CANAL"
>
<meta attribute="sync-DAO">false</meta>
<meta attribute="sync-DAO">false</meta>
</class>
as you can see, not all the columns present in the table are represented as properties inside the .hbm.xml file.