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.
主要实体类是“订单”。我为复合主键(orderId,orderName)创建了一个 jpa 实体类,例如“OrderPK”。我正在使用 Dozer 映射将另一个类映射到“Order”类。但是,dozer 没有将主类的值映射到复合主键实体(orderId,orderName)的 Order 类。它为复合设置空值主键值(orderId,orderName)。为什么会这样?