Query query = em . createQuery( "delete from OrderItem item where item. order in(from Order aso where o. amount<100)" );
把金额小于100的订单删除,先删除订单子项, 再删除订单。
For example, an orders business item could include an orderItems attribute of type OrderItem from the same or a different data catalog.
例如,order业务项目可能包括orderitem类型的属性orderitems,该类型位于同一或不同数据目录中。
An entity class is a class that represents an entity in a business model. In our model, the entity classes are Customer, Order, and OrderItem.
一个实体类在业务模型中代表着一个实体,在我们的业务模型中,实体类是Customer、Order、和OrderItem。
An entity class is a class that represents an entity in a business model. In our model, the entity classes are Customer, Order, and OrderItem.
一个实体类在业务模型中代表着一个实体,在我们的业务模型中,实体类是Customer、Order、和OrderItem。
应用推荐