Is it possible for a Grails Domain to have no 'id'?

后端 未结 5 1879
孤城傲影
孤城傲影 2021-02-06 05:32

Is it possible to create a table that has no \'id\'? For example, this is my domain:

class SnbrActVector {

    int nid
    String term
    double weight

    st         


        
5条回答
  •  北恋
    北恋 (楼主)
    2021-02-06 05:46

    There is no way to have no "id". what you can do is change the name of "id" field using assigned id generator.

提交回复
热议问题