Hi Thierry,
Thanks for detailed explanation. Now I know how to workaround the problems.
But... I'm not sure using of JPA is a deployment dependent. May be the
way of getting JPA configuration is container dependent, but using it I
think not.
Using of JPA as a wrap of sql backend gives me a lot of advantages like
unified construction of queries without troubles to detect sql dialect,
etc...
Currently exposed API of ejbs
- Logs.class
- AuditReader.class
- AuditLogger.class
- AuditAdmin.class
do not give abilities for complex queries. For example if I need to
search for events, created by a set of users and for a given time
window, this is really hard to implement, not impossible, but hard.
That is why I'm wandering of such encapsulation of implementation
without a hook to direct access of JPA, as the service had in previous
releases.
Regards,
Stefan.
Hi,
You are not supposed to access directly the entitymanager otherwise
your code will depend on the container: so for exemple it will run on
jboss but not in tomcat or jetty bundle.
If you run on jboss and just don't care about compatibily you may
probably get the entitymanager "by hand".
we currently don't provide a way to do this via nuxeo api.
On 21 Nov 2009 10:37, "Stefan Dimov" <[email protected]
<mailto:[email protected]>> wrote:
Hi Thierry,
Thanks for quick response.
Actually I need an EntityManager to create my custom queries.
Using of nativeQuery will change the way I'm accessing logs (via
EntitiyManager.createQuery() call).
Is there an easier way to fetch EntityManager for logs, or I have to
change my query builder?
Thanks again for help.
Regards,
Stefan.
Thierry Delprat wrote:
> > Hi, > > The method you are calling is not part of the ejb3
interface, that's why you get a tx e...
------------------------------------------------------------------------
> _______________________________________________ > ECM mailing list
> [email protected] <mailto:[email protected]> > http:/...
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm