摘要: JPA(hibernate)映射对象的4种状态: 临时状态/瞬时状态:刚new出来的对象,没有持久化(persist)即没有被entityManager关联。无id对象 Person person = new Person(); // 瞬时状态 person.setName("张三"); 持久化状态 阅读全文
posted @ 2025-07-20 22:53 天启A 阅读(19) 评论(0) 推荐(0)