开发者

Multiple HBM files with multiple classes for the same table

开发者 https://www.devze.com 2023-01-02 09:06 出处:网络
Can you have 1 table be referred to by 2 different HBM\'s mapped to 2 different classes (they are unrelated, basic classes, no inheritance).

Can you have 1 table be referred to by 2 different HBM's mapped to 2 different classes (they are unrelated, basic classes, no inheritance).

I know it may be bad practice because of duplication but it has to d开发者_StackOverflowo with code maintenance. I'm trying to avoid removing one of the classes.

Thanks,


Can you have 1 table be referred to by 2 different HBM's mapped to 2 different classes (they are unrelated, basic classes, no inheritance).

Yes you can. Just make sure to include stuff for optimistic locking if you are using optimistic locking.

0

精彩评论

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