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.
我正在学习休眠。我在实体类中读到,我们必须使用@Id(阅读注释教程)定义一个主键。
@Id
现在我的问题是假设我在我的对象中定义了主键,@Id但我的数据库表没有定义任何主键,在这种情况下,我将能够使用 hibernate 对该表执行操作。换句话说,我能否成功地进行CRUD操作,即对该表没有任何影响?