On Thu, Feb 5, 2009 at 12:23 AM, Bruno Mateus <bruno.a.mat...@gmail.com>wrote:

> Hello,
>
> I'm facing some problems in generating a compound unique key. I'm
> indexing some database tables not related with each other. In my
> data-config.xml I have the following
>
> <dataConfig>
>    <document name="objectTypes">
>        <entity name="node" pk="NODEID" query="select * from node">
>            <field column="alias" name="alias" template="node" />
>            <field column="id" name="id" template="node${node.nodeid}" />
>            <field column="NODEID" name="node_nodeid" />
>            <field column="NAME" name="node_name" />
>        </entity>
>    </document>
> </dataConfig>


1. To use the "template" attribute, you need to specify
transformer="TemplateTransformer" in the entity.
2. The case also matters in case of variables. So nodeid and NODEID is not
the same thing.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to