Join « POJO « JPA Q&A





1. Join an image into POJO on the server and then persisting using Hibernate?    stackoverflow.com

in a question(here Placing an image in an object, sending the object over rpc and then using hibernate ), someone told me

  1. Capture non-binary fields (text) into the POJO. I.e. ...

2. Is Nested Join possible, mapping a POJO to multiple tables.    forum.hibernate.org

Hi. 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.org

Hello. 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 ...