Simple query

"Andrei Harangus" <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Having the following class:
 
 
class Clazz {
private String field1;
private String field2;
}
 
Mapped to 
 
table tbl1(field1, field2)
 
What is the code snippet that would generate the sql
select * from tbl1 where field1 = field2
 
Regards,
Andrei
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.