You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using jodd write the dao layer,some simple sql execute like this:
classTestDao1<Test> {
publicTestfindByName(Stringname){
Stringsql="SELECT $C{Test.*} FROM $T{Test} WHERE $.name=:name";
Map<String,Object> params = newHashMap<>();
params.put("name",name);
//... run the sql and get the Test object;
}
}
Expected behavior
Any idea for code like spring jpaRepository:
publicinterfaceTestDao2<Test>{
@Query("SELECT $C{Test.*} FROM $T{Test} WHERE $.name=:name")
publicTestfindByName(@Var("name") Stringname);
}
Write less: TestDao2 only 2 line vs TestDao1 much more @igr
Have any idea or interesting to implement it or enhancement with jodd ?
The text was updated successfully, but these errors were encountered:
Current behavior
When using jodd write the dao layer,some simple sql execute like this:
Expected behavior
Any idea for code like spring jpaRepository:
Write less: TestDao2 only 2 line vs TestDao1 much more
@igr
Have any idea or interesting to implement it or enhancement with jodd ?
The text was updated successfully, but these errors were encountered: