F
Flare
Hi.
Im have asked for recommendation regarding the best production ready O/R
mapping tools for .net. I got that.
Since im an old, ok maybe not old (only 27), Java programmer patterns and
developement with tiers is of great importance for me.
I have a problem with the famours anti-pattern Tier leakage. In the Java
world I used POJO´s (simple java classes) as value objects. These value
objects was used for cayrring data between the tiers. So if i changed the
persistence tier the rest of the code still relyed in the same POJO´s.
Now with the .net O/R they all genereate eg. EmployeeEntity wich inherit
from EntityBase2 (LLBL PRO). If I pass the object from my persistence layer
to the business layer and down to the view I have just made a seriuos
"maintaince bug" the "tier leakage". If i wanna use eg. the EntityBroker im
so to say ****ed. I have to refactor ALL and EVERY class witch depend on the
EmployeEntity.
Have anyone thougt about this and come up with an solution? Is the
persistence tools wich can map PURE c# classes to realtionel classes as the
Java Hibernate? And why have so few chosen this way of doing it?
Is it hard to map eg.
Customer c = new Customer();
// fill object
adapter.SaveEntity(c);
And go find what this Customer really maps to int the Database?
Anders Jacobsen
Im have asked for recommendation regarding the best production ready O/R
mapping tools for .net. I got that.
Since im an old, ok maybe not old (only 27), Java programmer patterns and
developement with tiers is of great importance for me.
I have a problem with the famours anti-pattern Tier leakage. In the Java
world I used POJO´s (simple java classes) as value objects. These value
objects was used for cayrring data between the tiers. So if i changed the
persistence tier the rest of the code still relyed in the same POJO´s.
Now with the .net O/R they all genereate eg. EmployeeEntity wich inherit
from EntityBase2 (LLBL PRO). If I pass the object from my persistence layer
to the business layer and down to the view I have just made a seriuos
"maintaince bug" the "tier leakage". If i wanna use eg. the EntityBroker im
so to say ****ed. I have to refactor ALL and EVERY class witch depend on the
EmployeEntity.
Have anyone thougt about this and come up with an solution? Is the
persistence tools wich can map PURE c# classes to realtionel classes as the
Java Hibernate? And why have so few chosen this way of doing it?
Is it hard to map eg.
Customer c = new Customer();
// fill object
adapter.SaveEntity(c);
And go find what this Customer really maps to int the Database?
Anders Jacobsen