Announcement Announcement Module
Collapse
No announcement yet.
subclass active record error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • subclass active record error

    Hi, I have a abstract base class and a subclass
    this is my script:

    Code:
    entity jpa --class ~.domain.Parent  --inheritanceType JOINED --activeRecord false
    field string --fieldName parentp1 --notNull  --sizeMax 14
    entity jpa --class ~.domain.Child --extends ~.domain.Parent --testAutomatically --identifierField id --identifierColumn id 
    
    field string --fieldName childp1 --notNull  --sizeMax 14
    and I got those errors when "perform test":

    Code:
    [ERROR] The method countChildren() is undefined for the type Child
    [ERROR] The method findChild(Long) is undefined for the type Child
    [ERROR] The method countChildren() is undefined for the type Child
    [ERROR] The method findAllChildren() is undefined for the type Child
    [ERROR] The method countChildren() is undefined for the type Child
    [ERROR] The method findChildEntries(int, int) is undefined for the type Child
    [ERROR] The method findChild(Long) is undefined for the type Child
    [ERROR] The method flush() is undefined for the type Child
    [ERROR] The method findChild(Long) is undefined for the type Child
    [ERROR] The method merge() is undefined for the type Child
    [ERROR] The method flush() is undefined for the type Child
    [ERROR] The method persist() is undefined for the type Child
    [ERROR] The method flush() is undefined for the type Child
    [ERROR] The method findChild(Long) is undefined for the type Child
    [ERROR] The method remove() is undefined for the type Child
    [ERROR] The method flush() is undefined for the type Child
    [ERROR] The method findChild(Long) is undefined for the type Child
    [ERROR] The method findChildEntries(int, int) is undefined for the type Child
    [ERROR] The method persist() is undefined for the type Child
    [ERROR] The method flush() is undefined for the type Child

    it looks the Parent class must be a activeRecord?

    Thank you!
    Last edited by loveam; Dec 6th, 2011, 11:58 PM.
Working...
X