A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
EJB and other Java EE Technologies
output EJB query in entity class
Joined: Sep 13, 2007
Jul 11, 2008 10:28:00
Hello Does anyone know how to print the actual SQL query generated by EJBQL?
Suppose I have query = em.createNamedQuery("bla"); then setParameter for where clause. I can't just System.out.println(query); = this would give the object in
Given bla is like "select a from Account a where a.email=:email and ...";
How to print to give the select format?
I agree. Here's the link:
subject: output EJB query in entity class
Regular Expressions in String.split()
[ASK] JDBC driver for DBF file, opensource
class name in choices.txt
Join as well as Criteria Query
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014