Re: getter/setter facade

2010-12-13 Thread Nicolas Malin
Le 13/12/2010 08:56, Nicolas Malin a écrit : Le 12/12/2010 01:32, Adam Heath a écrit : BJ Freeman wrote: most of the frame works are objects. so how would you implement your object in simple-methods like GenericValue? These new classes are still GenericValue, while also being more specific.

Re: getter/setter facade

2010-12-12 Thread Marc Morin
We chose to use the full model reader when running the entity-gen since there are not trivial manipulations of the en*xml files, such as extending, auto-relationships, auto-indexes, materialized views, view optimizations... We don't entiy-gen on every build. Manually done. This is a bit of a

Re: getter/setter facade

2010-12-12 Thread Adam Heath
Marc Morin wrote: We chose to use the full model reader when running the entity-gen since there are not trivial manipulations of the en*xml files, such as extending, auto-relationships, auto-indexes, materialized views, view optimizations... We don't entiy-gen on every build. Manually

Re: getter/setter facade (was: Re: O-R Mapping (Was: findByAnd(Map) ws findList(EntityCondition)))

2010-12-12 Thread Jacopo Cappellato
Hi Marc, On Dec 11, 2010, at 9:40 PM, Marc Morin wrote: Now it's pretty obvious that many are reading the incorrectly renamed O-R mapping subject and saying it's counter to OFBiz entity model, core philosophy, discussed before... go away you Object lovin' Java developer... ;-) I don't

Re: getter/setter facade

2010-12-12 Thread Nicolas Malin
Le 12/12/2010 01:32, Adam Heath a écrit : BJ Freeman wrote: most of the frame works are objects. so how would you implement your object in simple-methods like GenericValue? These new classes are still GenericValue, while also being more specific. class Party extends GenericValue {}

getter/setter facade (was: Re: O-R Mapping (Was: findByAnd(Map) ws findList(EntityCondition)))

2010-12-11 Thread Marc Morin
Now it's pretty obvious that many are reading the incorrectly renamed O-R mapping subject and saying it's counter to OFBiz entity model, core philosophy, discussed before... go away you Object lovin' Java developer... ;-) I don't want to repeat the topic, but it is a getter/setter decorator

Re: getter/setter facade

2010-12-11 Thread Adam Heath
Marc Morin wrote: Now it's pretty obvious that many are reading the incorrectly renamed O-R mapping subject and saying it's counter to OFBiz entity model, core philosophy, discussed before... go away you Object lovin' Java developer... ;-) I don't want to repeat the topic, but it is a

Re: getter/setter facade

2010-12-11 Thread BJ Freeman
when you use a Class it is an object. getter and setter are methods by another name. if you instantiate a class all the methods are carried with it whether they are used or not. so regardless of your argument it is OO. if you are familar with c then create a hello world function and compile

Re: getter/setter facade

2010-12-11 Thread Marc Morin
We statically generate all the classes during build as you mentioned. We have a new ant target 'entity-gen' that runs after framework base util entity have been compiled. It is a custom container that reads the entity model, puts stuff into a context, then uses an ftl for the template of each

Re: getter/setter facade

2010-12-11 Thread Marc Morin
Well the good old GenericValue is an object as well. ;-) Marc Morin Emforium Group Inc. ALL-IN Software 519-772-6824 ext 201 mmo...@emforium.com - Original Message - when you use a Class it is an object. getter and setter are methods by another name. if you instantiate a class all

Re: getter/setter facade

2010-12-11 Thread Marc Morin
Have you extended the base-line non-typed get() method to support relation fetching? So, in groovy, I could do order.entryDate(which is possible now), or order.OrderItem(because the first char is capital, it would do a relation fetch). So we haven't but that is something that should be

Re: getter/setter facade

2010-12-11 Thread Adam Heath
Marc Morin wrote: We statically generate all the classes during build as you mentioned. We have a new ant target 'entity-gen' that runs after framework base util entity have been compiled. It is a custom container that reads the entity model, puts stuff into a context, then uses an ftl for

Re: getter/setter facade

2010-12-11 Thread Marc Morin
We have talked and lamented on handling in the framework the Entity sub-classing *Type entities with the hasTable and *TypeId hierarchy both on loading and the is A operator on entities and their types... Marc Morin Emforium Group Inc. ALL-IN Software 519-772-6824 ext 201

Re: getter/setter facade

2010-12-11 Thread BJ Freeman
most of the frame works are objects. so how would you implement your object in simple-methods like GenericValue? = BJ Freeman Strategic Power Office with Supplier Automation http://www.businessesnetwork.com/automation/viewforum.php?f=52 Specialtymarket.com

Re: getter/setter facade

2010-12-11 Thread Adam Heath
BJ Freeman wrote: most of the frame works are objects. so how would you implement your object in simple-methods like GenericValue? These new classes are still GenericValue, while also being more specific. class Party extends GenericValue {}