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, we have:
Code:
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.
There are link tables (many-to-many) where I envision using the uid field of the inetOrgPerson in my schema.
Does anyone have thoughts on this? I'm only interested in a specific field. I'll do lookups in the directory to get other attributes.
I'm unclear on how the UserType would be used in HQL and other circumstances.
Thanks,