Results 1 to 5 of 5

Thread: Is there any problem with inheritance in JPA Active records?

  1. #1
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default Is there any problem with inheritance in JPA Active records?

    Hello:

    I have an Entity, @RooJpaActiveRecord, but now I want it to extend an abstract base class.

    When I've created the inheritance hierarchy (public class MyEntity extedns MyAbstractBaseClass {) the _Roo_Jpa_ActiveRecord has disappeared.

    It seems I'm not the only one with this problem: ActiveRecord not generated

    Are we doing something wrong?

    Thanks in advance.
    Javier.

    P.S.: I'm using Roo 1.2.1.RELEASE (in Windows Professional 64 with STS 2.9.2)

  2. #2
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Lately I've created some POSTs in the forums that have been read a lot but nobody answered them. Including this one. I don't know if I'm asking challenging questions or dumb ones.

    Anyway, regarding this POST, I've found a workaround: instead of using an abstract parent base class I'll use an interface.

    But I would like to know why Roo deletes the ITD for JPA Active records whose parent doesn't have JPA/Roo annotations.

    Greetings.

  3. #3

    Default

    Quote Originally Posted by jbbarquero View Post
    Lately I've created some POSTs in the forums that have been read a lot but nobody answered them. Including this one. I don't know if I'm asking challenging questions or dumb ones.

    Anyway, regarding this POST, I've found a workaround: instead of using an abstract parent base class I'll use an interface.

    But I would like to know why Roo deletes the ITD for JPA Active records whose parent doesn't have JPA/Roo annotations.

    Greetings.
    I would like to add support for answering this question. I have been on the search for an answer to this problem. the activerecord .aj file does not regenerate.

  4. #4
    Join Date
    Jul 2012
    Posts
    1

    Default

    I'm not sure if it will help as I'm using repositories but is your base class annotated with @MappedSuperclass?

  5. #5
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Thanks mhaynesjr and eltair for your responses.

    It's been a little while ago , thus I don't remember right now.

    I will check on the next Monday.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •