Good afternoon,
I am trying to implement a custom type mapping for a stored procedure call similar to the the following example:
Code:
<class name="UserTypeImpl" table="ownUserType">
...
<property name="Active" column="Active" type="com.purefacts.db.hibernate.type.BooleanType, SpringAir.Core" access="property"/>
...
</class>
which maps the return values of '1' to true and '0' to false for the Active property.
Thus I coded up the following:
Code:
<sql-query name="get_user_types">
<return alias="user_type" class="UserTypeImpl">
...
<return-property name="Active" column="Active" type="com.purefacts.db.hibernate.type.BooleanType, SpringAir.Core" />
...
</return>
get_user_types
</sql-query>
but I am getting the following error:
Code:
type attribute is not declared
Are custom mappings like this supported in nHibernate 2.x?
Thanks in advance.
Whatty