Because the NodePeer.PARENT_ID constant includes the table name?

John McNally <[EMAIL PROTECTED]> writes:

> I don't think that will work the first form is required.
>
> john mcnally
>
> On Tue, 2002-04-30 at 15:04, Jon Scott Stevens wrote:
> > on 4/30/02 2:33 PM, "Jeff Schnitzer" <[EMAIL PROTECTED]> wrote:
>> 
>> > Criteria crit = new Criteria();
>> > crit.addAlias("n2", NodePeer.TABLE_NAME);
>> > crit.addJoin(NodePeer.ID, "n2.parentId");
>> > crit.add(NodePeer.PARENTID, 5);
>> 
>> What about this:
>> 
>> Criteria crit = new Criteria();
>> crit.addAlias("n2", NodePeer.TABLE_NAME);
>> crit.addJoin(NodePeer.ID, NodePeer.PARENT_ID);
>> crit.add(NodePeer.PARENTID, 5);

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to