views:

26

answers:

1

Hi all, I'm grails newbie.i want to mapping primary key with VARCHAR2 and generate primary key using my method to generated its.how to solve this problem?

A: 

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.

amra
Thank you so much
MewZ
Don't forget to mark question as accepted :o)
amra