EJBQL or HQL transformator

Hello,

I have the following problem - I should change some part of query in application. E.g. application should add something in where clause (depends on tables). I use EJB and this chanhes I can do only in EJB (or Hibernate, for future). So I need something that can parse and change EJBQL and/or HQL statement.

Any suggestion?

Thanks in advance.

[373 byte] By [Aeternitatusa] at [2007-11-26 18:35:01]
# 1

Hard to tell what your question is but as a guess the answer is .... no you can't do that.

At least for hibernate is allows you a way to pass through sql directly. And that is probably what you need. Depending on where EJBQL is these days (and what you are using) either you are going to be looking for the same functionality or you need to roll your own queries.

jschella at 2007-7-9 6:09:06 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...