by Marius Gheorghe
29. November 2007 14:21
There are some changes to the BusinessObjects implementation in DataBlock 1.4 .Now there will be 2 types of objects generated for each entity :
- the DataAccessObject : this resembles very much with the old BO objects. It's a typed DAL for a entity. The idea is to use this DAL from a high level "custom" BO.
- the new BusinessObject. This is a clean implementation with supports only the "basic" operation for a entity : Create, Delete, Update and Read. The underline implementation of this is the PersistentObject. This is also used to implement your custom business logic. Write the queries using QueryCriteria and pass them to the persistent object.
So those 2 methods...do we really need them both ? Yeap...choice is the name of the game here. Some people will like to use the built in BOs while others will prefer to use the DAL and build their own BOs.
This way everybody should be happy :)