Very good.
Can you explain me how to submit a patch then?
Since I need this features for a project I'm working on I will make some changes very soon.
Please explain me everything, like "get a cvs account, checkout, change, commit" or please point me to some guidelines.
As maybe you have read, my idea is to generate finders like
"select from eg.A where a.x=X and a.y=Y"
where x and y are whatever properties of the class A.
Nowdays, you can only generate finders for one property.
My approach would be to use a mapping which looks like:
Code:
<property name="x">
<meta attribute="finder">findByXandY</meta>
<meta attribute="finder-extra-field">y</meta>
</property>
and should produce a finder like
Code:
public static List findByName(Session session, XObject theX, YObject theY ) throws SQLException, HibernateException {
String query = "select a from a" +
" in class eg.A" +
" where a.x= :X" +
"' and a.y :Y";
Query q = session.createQuery(query);
q.setEntity("X", theX);
q.setEntity("Y", theY);
return q.list();
}
maybe better formatted though :-D
What do you think?
/robcos