facebook

Hibernate Spring DOA and Composite Keys

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #262504 Reply

    rbrand
    Member

    Hi

    I generated my POJO’s and DOA’s for Spring using the normal MyEclipse Hibernate reverse engineering. All seemed to have worked fine until I came to the table’s with composite keys. In the tables with a normal key, the DOA is extended from HibernateDaoSupport and has a function included getFromApplicationContext. These are also included in the applicationContext.xml.

    In the case of the composite keys, the DOA is inherited from BaseHibernateDAO. It is not included in the applicationContext.xml and it does not have a getFromApplicationContext. It seems they need to be handled differently. Could you point me in the right direction here?

    Thank you

    rbrand

    #262514 Reply

    Brian Fernandes
    Moderator

    rband,

    Are you sure you chose to generate Spring DAOs for the tables in question? The BaseHibernateDAO is usually generated only if you choose “Basic” DAO’s and not if you choose Spring DAOs (this choice can be made on page 1 of the RE wizard).
    Can you delete the DAO’s which extend BaseHibernateDAO and regenerate the mappings again to check?

    Can you also let me know which MyEclipse version you are using?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate Spring DOA and Composite Keys

You must be logged in to post in the forum log in