-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: LDAPUser UserType, Mapping?
PostPosted: Thu Dec 11, 2003 2:11 pm 
Regular
Regular

Joined: Fri Sep 12, 2003 12:40 pm
Posts: 65
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.