facebook

Hibernate, Spring DAOs, & Abstract POJOs

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

    jcastell
    Member

    All,

    Just a quick question. One of my developers is claiming that Spring is choking on him whenever he reverse engineers a DB table, and chooses to generate abstract POJOs and a Spring DAO. Compile time is fine, but at runtime he’s getting a NoSuchMethodException from Spring, claiming that it can’t find the getter/setter in question.

    This seems like something trivial. Anything we’re missing? I have a hard time believing that Spring’s reflection code can’t pick up accessor/mutator methods declared in a parent class.

    -jc

    #261736 Reply

    Haris Peco
    Member

    jcastell ,

    I have tried simple case with loading dao and dao.findById() method.It works fine for me.Please, can you send more details :

    where you got exception : spring context initialization, loading DAOs, calling DAO’s methods … ?

    It is the best if you can send example of code

    Thanks,

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate, Spring DAOs, & Abstract POJOs

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