开发者

Can Hibernate design tables automatically

开发者 https://www.devze.com 2023-02-10 01:27 出处:网络
I know that Hibernate can create tables automatically, if the mapping from the domain model to columns is specified.

I know that Hibernate can create tables automatically, if the mapping from the domain model to columns is specified.

I am interested to know if Hibernate can actually create/design the table schema based on the domain model as well. For example I have classes that often have properties that are variable length col开发者_StackOverflow社区lections e.g. Set or ArrayList and I am curious to know how Hibernate would "design" the tables to fit these properties. But first I'd like to know if this is possible


I think these answer your question:

Reverse engineer DDL from JPA entities

Auto generate data schema from JPA annotated entity classes

0

精彩评论

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

关注公众号