-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: About the translator extension query
PostPosted: Mon Aug 19, 2013 10:27 am 
Newbie

Joined: Mon Aug 19, 2013 10:14 am
Posts: 4
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?


Top
 Profile  
 
 Post subject: Re: About the translator extension query
PostPosted: Tue Aug 20, 2013 3:03 pm 
Newbie

Joined: Mon Aug 19, 2013 10:14 am
Posts: 4
????


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.