I totally agree and this is already planned for JBoss 4.0. The real problem is not the code to do the loading but figuring out a simple xml structure to define the loading.

-dain

Emerson Cargnin - SICREDI Servi�os wrote:
I have a suggestion regarding to CMP : why not create a configuration to a find method to allow the container to load the relationships of a bean?

This could be useful in the cases you have to read all the beans(or a good amount of then) and all (or almost all) relationships of them. eg : in a report you will have a sql to finding the pk's, one (at least) to load the bean data and one sql to each relation you have to report (for each bean).

I think that one of the worse problem with CMP is that : database overhead. CMP generates too much sql commands that in some cases could be handled by fewer (if not one) sql commands. The DBA's in my company didn't like very much the trace they saw in the database for a very simple app.


-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to