ACP
2015-09-24 02:10:19 UTC
Assume you have a legacy application that uses an ORM framework such as
Hibernate or another JPA application and a relational database that you
can't easily replace. You've read GOOS and want to follow the GOOS style
for new features and redesigning small parts of the existing code as time
allows. You're creating classes whose objects must be persisted. The
internal design of a typical new class contains a few attributes that must
be persisted and one or more non-persistable collaborators (e.g., some
strategy subclass or interface implementation or a listener
implementation). The ORM doesn't make life easy when you want to
reconstitute an object of such a class. Sure, the attributes are easily
mapped from the row to the object, but not so with non-persistable items.
What do you do? Do you ditch the ORM?
Hibernate or another JPA application and a relational database that you
can't easily replace. You've read GOOS and want to follow the GOOS style
for new features and redesigning small parts of the existing code as time
allows. You're creating classes whose objects must be persisted. The
internal design of a typical new class contains a few attributes that must
be persisted and one or more non-persistable collaborators (e.g., some
strategy subclass or interface implementation or a listener
implementation). The ORM doesn't make life easy when you want to
reconstitute an object of such a class. Sure, the attributes are easily
mapped from the row to the object, but not so with non-persistable items.
What do you do? Do you ditch the ORM?
--
---
You received this message because you are subscribed to the Google Groups "Growing Object-Oriented Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriented-software+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "Growing Object-Oriented Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriented-software+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.