Hi!
I have a bean defined with the follow properties:
public class UserTopic implements java.io.Serializable {
private UserTopicId id;
private Topic topic;
private int personal = 0;
-------
UserTopicId is:
-----------
public class UserTopicId implements java.io.Serializable {
private String topicId;
private String userId;
-----------
Normally, to search topics for an user I did:
getHibernateTemplate().find(" from UserTopic where user_id = ?", user_id)
but I don't know how do I search with this key
Do you know?
thanks