You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having abstract entities that are implemented anonymously by the manager is not a very good pattern. It results in more complex design and makes it more difficult to understand how Speedment works. The only reason for this is that we don't want to store the Speedment instance in every entity and we need it to persist, update and delete entities.
A potential solution for this would be to include the Speedment-instance in the method call where it is needed. It would look something like this:
Having abstract entities that are implemented anonymously by the manager is not a very good pattern. It results in more complex design and makes it more difficult to understand how Speedment works. The only reason for this is that we don't want to store the Speedment instance in every entity and we need it to persist, update and delete entities.
A potential solution for this would be to include the Speedment-instance in the method call where it is needed. It would look something like this:
This would be quite a big API change and would therefore have to wait until the 2.4.0 Forest release.
The text was updated successfully, but these errors were encountered: