You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Raminderjeet Singh (JIRA)" <ji...@apache.org> on 2012/06/14 16:06:42 UTC

[jira] [Commented] (RAVE-678) Change model's attributes in protected

    [ https://issues.apache.org/jira/browse/RAVE-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13295039#comment-13295039 ] 

Raminderjeet Singh commented on RAVE-678:
-----------------------------------------

I have extended Rave user object (Person) outside of Rave https://ogce.svn.sourceforge.net/svnroot/ogce/rave-extensions/rave-id-extension/src/main/java/org/apache/rave/portal/model/User.java to add custom fields to User table. These changes make the changes to database fine but when i tried to use this extended object spring gives some class cast exceptions. i am trying to resolve this to release this as rave-extension project as example.Yes you are right it does not work same way for other models. I tried extending Page model. It works well if the extension class in in Rave-code model package but not in my extended project. Please make the required changes and submit a patch. attaching my sample Page extension model
                
> Change model's attributes in protected
> --------------------------------------
>
>                 Key: RAVE-678
>                 URL: https://issues.apache.org/jira/browse/RAVE-678
>             Project: Rave
>          Issue Type: Improvement
>          Components: rave-core
>            Reporter: Anne-Hélène TURPIN
>         Attachments: NewPage.java
>
>
> We would like to extend the rave model persistence. We would like to inherit attributes from the superclass but It's impossible except for the Person model which has protected attributes.
> Is it possible to modify it for models in the rave-core component and in the rave-opensocial-core component ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira