Oups,  addons for to generate the persistance is ufo-java-developed

ofbiz-generators contains only generator engine ;)

Nicolas


Cimballi a écrit :
Thanks for this information Nicolas, I will look at it !
Cimballi

On Thu, Mar 11, 2010 at 10:09 AM, Nicolas Malin
<malin.nico...@librenberry.net> wrote:
Hello, this functionnality already exists on neogia addons project. On your
OFBiz instant, you install ofbiz-generators addon and the system generator
java class for entitymodel analyse.

If you want try, I download addon manager at this address
http://addons.neogia.org/addonmanager.tar and deploy in your hot-deploy
directory.
Run ofbiz  and in admGui install ofbiz-generators
After on your ofbiz home run : ant -f generate.xml

After that you have some new generate class to do in your javafile :

String partyId = party.getPartyId();
or
String partyId = context.get(Party.partyId);

Nicolas

Cimballi a écrit :
Hi David !

As an intermediate user (let's say level 2on 4), to help understand
what kind of user I am, I think it would be very interesting to have
java classes which represents the data model. I don't say one object
per table because maybe it's not the better solution, even if it seems
to be the most logical way to do it. Also, I don't think it's so
important to support another ORM framework, like Hibernate. OFBiz has
its own ORM framework and I am ok with that. The fact about having
java classes is that it would provide an easier way to write code in
an IDE with coe completion, and it would avoid a lot of errors in the
writing of the fields names. It would also provide easy search methods
on fields, for now if you search where you used the field
"description" for an entity X, you can search on the fields name but
can distinghuish on the entity.

On another side, it would be good to have the ORM framework developed
and packaged separatly from whole OFBiz project, to be able to easily
reuse it in other projects. It could be a big boost for the ORM
framework as more developers would be able to use it.

That's my opinion, and thanks for readind it ! ;-)

Cimballi


On Thu, Mar 11, 2010 at 2:19 AM, David E Jones <d...@me.com> wrote:

If you could change anything about the data tier in OFBiz (basically the
Entity Engine), what would you change?

All comments are welcome. If there is another tool you'd like to see used
instead of the Entity Engine, please describe what you like about it (like
"I want to have an Java class for each table in my database") instead of
just mentioning the tool (like "let's use Hibernate!").

Why am I asking? This topic comes up every once in a while, and it's true
that many suggestions never get enough support to actually happen (or on
further research it is decided that the idea is not tenable), but
brainstorming about them to get ideas in the open is still a great thing.
The history of OFBiz is full of things like this where users and more casual
contributors had ideas and saw possibilities that others, even more involved
contributors, totally missed or never looked at that way. What I think would
be fun, and ultimately useful too, is to keep this mostly to brainstorming
and not do too much comparing of ideas.

BTW, if you want to brainstorm about another tier (ie the Logic or UI
tiers) please use the other threads on those. If you'd like to discuss
things that aren't specific to a tier look for the "General" thread.

-David





--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/







--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/

Reply via email to