1. Join an image into POJO on the server and then persisting using Hibernate? stackoverflow.comin a question(here Placing an image in an object, sending the object over rpc and then using hibernate ), someone told me
|
2. Is Nested Join possible, mapping a POJO to multiple tables. forum.hibernate.orgHi. I am trying to map a POJO LoanSearchDTO.java to multiple tables. Tables LOAN_ST and LOAN_CONT_ALLTN are associated to table LOAN through ID_LOAN. Table CASH_CONT is associated to table LOAN_CONT_ALLTN through ID_LOAN_PCH_CONT. This means tables LOAN and CASH_CONT are associated through table LOAN_CONT_ALLTN (a kind of transitive association) I could map all tables to Loan through ID_LOAN using Join, however am ... |
3. How to create a simple join in POJOs forum.hibernate.orgHello. Today I was surprised I do not know how to do a very simple thing with Hibernate. Here is a sample SQL that does what I want: SELECT * FROM main_table, sub_table WHERE main_table.sub_id = sub_table.sub_id i.e., fetch the record for the corresponding sub_id from sub_table. I don't want HQL for that - just how should I create my mappings ... |