[wildfly-dev] Decoding query name attribute in deployment/subsystem/jpa/hibernate-persistence-unit/query-cache nodes

Thomas Segismont tsegismo at redhat.com
Mon Jan 27 11:02:30 EST 2014


Hi,

deployment/subsystem/jpa/hibernate-persistence-unit/query-cache nodes 
expose an "encoded" query name attribute. Here's an example:

"rhq.ear/rhq-core-domain-ejb3.jar#rhqpu.rhq.ear_divide_rhq_minus_core_minus_domain_minus_ejb3.jar#rhqpu.rhq.ear_divide_rhq_minus_core_minus_domain_minus_ejb3.jar#rhqpu.SELECT_space_subject_newline_FROM_space_Subject_space_subject_newline_WHERE_space__left_paren__space_LOWER_left_paren__space_subject.name_space__right_paren__space_like_space__colon_name_space_ESCAPE_space__quote_\\_quote__space__space__right_paren__newline_ORDER_space_BY_space_subject.id_space_ASC_newline_"

I could write something to decode every occurrence of "_minus_", 
"_space_" and so on, provided I can get the list of all the keywords in 
use. But I wonder if there's already a library in the Hibernate 
subsystem which does that.

By the way, these nodes exist in AS7 and EAP6, but I found no equivalent 
in Wildfly management model. Did I miss the definition on the Wildscribe 
site?

http://wildscribe.github.io/JBoss%20AS7/7.1.1/deployment/subsystem/jpa/hibernate-persistence-unit/query-cache/index.html

Thanks,
Thomas


More information about the wildfly-dev mailing list