开发者

How to mapping primary key is VARCHAR2 type and excute my method to generate it

开发者 https://www.devze.com 2023-01-15 03:00 出处:网络
I\'m grails newbie.i want to mapping primary key with VARCHAR2 and generate primary key using my 开发者_Go百科method to generated its.how to solve this problem?In GORM you can specify your own functio

I'm grails newbie.i want to mapping primary key with VARCHAR2 and generate primary key using my 开发者_Go百科method to generated its.how to solve this problem?


In GORM you can specify your own function generating ids.

To specify column type take a look into documentation. For using VARCHAR2 in Oracle DB just set your property as String.

0

精彩评论

暂无评论...
验证码 换一张
取 消