Would it be difficult to add an attributer to the class declaration in
the mappings file to allow use of encryption?  For example, you might have
something like:

  <class name="myapp.User" identity="id">
    <description>Application user</description>
    <map-to table="user"/>
    <field name="id" type="integer" >
      <sql name="id" type="integer"/>
    </field>
    <field name="name" type="string">
      <sql name="name" type="char" />
    </field>
    <field name="password" type="string" encrypt="someEncryptor">
      <sql name="password" type="char" />
    </field>
  </class>


where encrypt could be similer to the way key generators are now. 
Encryption could be handleded in application space by some JCE provider,
or at the database level if the db supports it (such as DB2).

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to