Sorry about this. I posted this to the wrong forum.
If I'm interested in using LDAP to manage users and groups, can someone provide a hint into Gavin's comments about using a UserType or CustomType?
From the javadoc of UserType, we have methods that clearly pass in JDBC classes. Should these just be ignored in the case of DoubleType?
Object nullSafeGet(ResultSet rs, String[] names, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
void nullSafeSet(PreparedStatement st, Object value, int index)
Write an instance of the mapped class to a prepared statement.
I have link tables (many-to-many) where I envision using the userid property of a User (the uid attribute) which I'll pull from LDAP.
I'm unclear on how a non persisted type UserType would be used in HQL and how it would be mapped.
Thanks,
_________________ - Brian
|