更新时间:2021-09-30 19:33:30
One一次重命名所有表的方法是实现自己的namingStrategy( org.hibernate.cfg.NamingStrategy
)的实现。
One way to rename all tables at once, is to implement your own namingStrategy (implementation of org.hibernate.cfg.NamingStrategy
).
所使用的NamingStrategy在persistence.xml中由
The NamingStrategy used is specified within persistence.xml by
<property name="hibernate.ejb.naming_strategy"
value="com.example.MyNamingStrategy" />