Hi Kevin,

Kevin Viet wrote:
Another question about field mapping

There are many implementation strategy for fields mapping, What are the main difference between them ...
There are two reflection based strategies.
the default version cooperates with java access control mechanisms. It is quite slow.
the maximum performance strategy also uses reflection, but does not care about access control. It's the fastest field access.

Then there are the Java beans compliant strategies. We have included them into our distribution because users complaint that they don't want any framework to access their objects directly.
disadvantages of java beans compliant access:
- it's not that fast.
- you have to stick to java beans naming conventions.
- you need public getters and setters for all persistent attributes.


Is it better to take the one that follow java bean strategy or use the
one which doesn't need accessors ??

It really depends on what is important to you, performance or java beans compliance.

cheers,
Thomas

Cheers





--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to