Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个休眠序列,它在我的应用程序中生成所有序列号。当我从休眠(目标 Oracle10)生成模式时,它会生成:
create sequence hibernate_sequence;
我想更改序列的配置。我必须使用类似的东西:
create sequence hibernate_sequence order nocache;
每次创建脚本时,我都不喜欢更改生成的脚本。在哪里可以自定义hibernate生成的序列?
您可以创建自定义序列生成器。有关详细信息,请参阅http://www.hibernate.org/296.html。