Joined: Wed Dec 03, 2003 5:23 pm Posts: 7
|
I tried this:
<id name="id" column="id" type="long">
<generator class="sequence">
<param name="sequence">security_seq</param>
</generator>
</id>
<property name="name" column="NAME" type="string" />
<property name="description" column="DESCR" type="string" />
<property name="path" column="PATH" type="string" />
<property name="childCount" insert="false" update="false"
formula="(select count(*) from user_group_hierarchies ugh where ugh.parent_group_id = id)"
/>
where the id primary key is refered to at the end of the select statement, which seems to be working. I guess I was expecting to have to delimit the property somehow.
|
|