as said many times there is not object mapping into database.
learn how delegator's work.
the beauty of ofbiz frame work is once you define a new field in a entity it is available through the delegator, in any code. No need to map.



=========================
BJ Freeman
Strategic Power Office with Supplier Automation  
<http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man

Shereen sent the following on 1/20/2011 6:19 AM:


Hi All
I'm having a problem related to how the objects are related to the database
tables so that the object can be saved
This was very easy using minlang where you can specify what entity are you
using and do the CRUDs easily
but what about the java objects how they are mapped to the database tables

I cam Across this problem while tring to do the following
I want to add two field in the OrderItem table those fields are called
fromDate and toDate
I've added them to the database table through the entitymodel.xml very
easily
Actually those two fields come from the quote like startReservation date for
example
so I went to the service loadCartFromQuote
and added them into the cartItem Object
I don't know how to map this to the orderItem table
I mean now the cartItem contains 2 dates and the OrderItem has 2 dates how
the mapping is done?
where the method that will save the cart item to order item and put it in
the database?
I've searched for a while and I found that ofbiz doesn't use ORM then how it
works?

I'd be grateful for a reply

Reply via email to