我通过Hibernate(注释)使用Postgres,但它似乎在处理用户对象时遇到了问题:
12:09:16,442 ERROR [SchemaExport] Unsuccessful: create table User (id bigserial not null, password varchar(255), username varchar(255), primary key (id))
12:09:16,442 ERROR [SchemaExport] ERROR: syntax error at or near "User"
如果我手动运行SQL,我必须在表名周围加引号,因为user似乎是postgres关键字,但我如何说服hibernate自己这样做呢?
提前谢谢.