I have a classic case of order header with associated rows in a nested datasource.
Everything works, the only problem is that when I delete one or more rows from the order, when I press to save the order, the program goes to the exception:
IllegalStateException: Can not get unfetched attribute [CreatedBy] from detached object
I know that the problem is because all the attributes have to be included in the view, but in this case I do not have a view as a datasource for the order lines, I have a nested datasource which obviously refers to the composition defined in the entity.
I’m sure I’m missing something, any suggestions please?