hi' I am new to hibernate. I am facing problem at the time of mapping in my table no primary key is there . but two not null values are there how i can represent them in hibernate thanks in advance
my table structure is like this
Field Type Collation Null Key Default Extra Privileges Comment
ApplicationId bigint(20) (NULL) NO PRI (NULL) auto_increment select,insert,update,references
ApplicationName varchar(32) latin1_swedish_ci YES (NULL) select,insert,update,references
IsTimeSubsciptionValid tinyint(4) (NULL) YES 0 select,insert,update,references
IsUserCountValid tinyint(4) (NULL) YES 0 select,insert,update,references
MaxUserCount int(11) (NULL) YES 0 select,insert,update,references
IsMaxAccessCountValid tinyint(4) (NULL) YES 0 select,insert,update,references
MaxAccessCount bigint(20) (NULL) YES 0 select,insert,update,references
IsParentingAvailable tinyint(4) (NULL) YES 0 select,insert,update,references
TimePeriodAllowed bigint(20) (NULL) YES 0 select,insert,update,references
Table Query.
Table Create Table
ApplicationTable CREATE TABLE ApplicationTable
(
ApplicationId
bigint(20) NOT NULL auto_increment,
ApplicationName
varchar(32) default NULL,
IsTimeSubsciptionValid
tinyint(4) default '0',
IsUserCountValid
tinyint(4) default '0',
MaxUserCount
int(11) default '0',
IsMaxAccessCountValid
tinyint(4) default '0',
MaxAccessCount
bigint(20) default '0',
IsParentingAvailable
tinyint(4) default '0',
TimePeriodAllowed
bigint(20) default '0',
PRIMARY KEY (ApplicationId
)
) ENGINE=MyISAM DEFAULT CHARSET=latin1