When you use a Transformer on a entity query does it also transform the value 
if it's needed in a subentity query?
Considering the next example, the value ${outer.id} that is used in the "inner" 
entity is affectd by the ClobTransformer?(ignore the fact that it doesn't make 
sense to use a ClobTransformer in this case... This is just an example :) )
<dataConfig>  <dataSource type="JdbcDataSource"               
driver="com.mysql.jdbc.Driver"              url="jdbc:mysql://localhost/dbname" 
              user="user-name"               password="password"/>  <document>  
  <entity name="outer"             query="select id,name,desc from mytable" 
transformer="ClobTransformer">       <field column="id" name="solr_id" 
clob="true" />       <field column="name" name="solr_name"/>       <field 
column="desc" name="solr_desc"/>       <entity name="inner"               
query="select details from another_table where id ='${outer.id}'">              
<field column="details" name="solr_details"/>        </entity>    </entity>  
</document></dataConfig>


                                          

Reply via email to