About the translator extension query
I would check if there is any way that I can extend the way you translate the named-query to add behaviors.
What do'm wanting to do is add a simple way to do dynamic queries with named-query.
example:
Code:
<!-- QUERY BASE -->
<named-query name="Pessoa.select">
<query>
<![CDATA[
SELECT pessoa
FROM Pessoa pessoa
WHERE pessoa.ativo = 'S'
${query.extends.parameter1}
ORDER BY pessoa.nome
]]>
</query>
</named-query>
<named-query name="Pessoa.select.and.filter" extends="Pessoa.select"><!-- EXTENDS THE NAMED-QUERY 'Pessoa.select' -->
<query>
<extens-parameter named="query.extends.parameter1"><!-- REPORTS THE PARAMETER 'query.extends.parameter1' -->reports the parameter
<![CDATA[
AND pessoa.nome = :pessoaNome
]]>
</extens-parameter>
</query>
</named-query>
You can do this somehow? Or you can extend part of what makes this reading hibernate?