grails的domain继承之后生成的表结构

来源:互联网 发布:android 仿淘宝客户端 编辑:程序博客网 时间:2024/05/16 05:16

Now have the follow:
Category : Goods = one:many,
then create-domain-class Car ,do the following modifications:

class Car extends Goods{}

after run-app , compared to the previous table structure:
category : unchanged
goods : add a column : class . the content of this column is the object corresponding to the class name
car : column: id , version

这里写图片描述

0 0
原创粉丝点击