Hello
The database already exists and cannot easily be modified
The script for this particular table (if it can help) is :
create table T_SIAM (
SIAM_YEAR int not null,
SIAM_MONTH int not null,
SIAM_OWNER int not null,
SIAM_VERSION int not null,
SIAM_DATE_VERSION datetime not null,
SIAM_AUTHOR int not null,
SIAM_ETAT char(1) not null,
SIAM_COMMENT nvarchar(512) null, SIAM_MOTIF nvarchar(512) null, SIAM_DATE_INTEGRATION datetime null,
SIAM_INTEGRE bit not null,
SIAM_GROUP nvarchar(8) not null,
SIAM_IMPUTATION text not null,
constraint PK_T_SIAM primary key (SIAM_YEAR, SIAM_MONTH, SIAM_OWNER, SIAM_VERSION)
)
And with show_sql set to ture, I got this :
Hibernate:
select
siam0_.SIAM_YEAR as SIAM_YEAR0_,
siam0_.SIAM_MONTH as SIAM_MONTH0_,
siam0_.SIAM_OWNER as SIAM_OWNER0_,
siam0_.SIAM_VERSION as SIAM_VER4_0_,
siam0_.SIAM_DATE_VERSION as SIAM_DAT5_0_,
siam0_.SIAM_AUTHOR as SIAM_AUT6_0_,
siam0_.SIAM_ETAT as SIAM_ETAT0_,
siam0_.SIAM_COMMENT as SIAM_COM8_0_, siam0_.SIAM_MOTIF as SIAM_MOTIF0_,
siam0_.SIAM_DATE_INTEGRATION as SIAM_DA10_0_,
siam0_.SIAM_INTEGRE as SIAM_IN11_0_,
siam0_.SIAM_GROUP as SIAM_GROUP0_,
siam0_.SIAM_IMPUTATION as SIAM_IM13_0_
from T_SIAM siam0_
where siam0_.SIAM_YEAR=?
and siam0_.SIAM_MONTH=?
and siam0_.SIAM_OWNER=?
and siam0_.SIAM_VERSION=?
Hope it can help you in helping me :)
Axel.
|