I want to do batch inserts quickly. Imagine that Order type has a Customer property. I have the customer's ID, and I want to create many orders quickly. I want to set the Order.Customer property by ID, without having DO load the Customer entity from the database. Is this possible? |
Try to use DirectPersistentAccessor, here is example:
|
Good idea! But i think this can only be possible if you switch off the validation features. (for example, business rule, you can only assign an Active Customer to an order, you need the load the customer entity and check the active state). |