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.
我只能访问 db 和只读访问 hbm.xml 文件。需要增加列大小。我在此表的 hbm.xml 文件中的表/列定义中看到没有属性长度。在这种情况下,应用程序是否应该使用增加的列大小?
是的,它会。Hibernate 不关心列的长度。
你为什么不简单地测试一下?
Hibernate 不限制其属性的长度,它是在数据库级别设置的限制。
通常,DB 会为相关字段分配足够的长度。
既然你说你只有读取权限,我认为它无论如何都不相关......