#
monica
I am just a beginner of nhibernate technology, so I learn a lot in the aspect of nhibernate application from the cuyahoga framework. Thank you!
I wish you would give me a hand for the problem as below:
I change the field of roleuseid from int to varchar in cuyahoga_userrole table of database, accordingly I change the procedure.
when I insert a new user,there will be an exception: The field of roleuseid cann't be null.
I am puzzled:
I can understand if use the int data type with identity,there is no problem.
But how canI do to create the data in the field as primary key with varchar data type when using the "bag" in User.hbm.xml?
I wish you would give me a hand for the problem as below:
I change the field of roleuseid from int to varchar in cuyahoga_userrole table of database, accordingly I change the procedure.
when I insert a new user,there will be an exception: The field of roleuseid cann't be null.
I am puzzled:
I can understand if use the int data type with identity,there is no problem.
But how canI do to create the data in the field as primary key with varchar data type when using the "bag" in User.hbm.xml?