私のpojoは次のようになります:
@Entity
@Table(name = "USERS")
public class User {
そこに名前を保持すると、すべてが機能し、休止状態の SQL ログが表示されます。
create table users (id int8 not null, username varchar(255), primary key (id))
注釈を削除すると、次のようになります。
Hibernate: create table user (id int8 not null, username varchar(255), primary key (id))
19:24:43 [localhost-startStop-23] ERROR o.h.tool.hbm2ddl.SchemaExport - HHH000389: Unsuccessful: create table user (id int8 not null, username varchar(255), primary key (id))
19:24:43 [localhost-startStop-23] ERROR o.h.tool.hbm2ddl.SchemaExport - ERROR: syntax error at or near "user" Position: 14
私のxmlで定義されているので、これを使用しようとしています:
<property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy" />
命名戦略が機能しない理由はありますか?