hi
i did as u said but now the issue is that my .cfg.xml contains only the id (primary key) and the rest of the column property, i am adding programmatically as you said.
but when i try to save the values in the table by calling session.save, it picks only the id and not the columns.
it creates the query as
insert into teams (TEAM_ID) values (?)
whereas it should create as
insert into teams (TEAM_ID, TEAM_NAME) values (?,?)
(Here TEAM_ID is present in xml and TEAM_NAME, i am adding through configuration)
please let me know what am i missing out. its very urgent.
Thanks
|