You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Fay Wang (JIRA)" <ji...@apache.org> on 2009/11/19 07:00:40 UTC

[jira] Created: (OPENJPA-1396) metadata-complete in the orm file does not override @Transition annotation

metadata-complete in the orm file does not override @Transition annotation 
---------------------------------------------------------------------------

                 Key: OPENJPA-1396
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1396
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 2.0.0
            Reporter: Fay Wang
            Assignee: Fay Wang
             Fix For: 2.0.0


In the orm.xml:

	<embeddable class="embeddable.Address" metadata-complete="true"/

where embeddable.Address is defined as:

@Embeddable
public class Address {
    @Transient
    protected String street;

    protected String city;
    
    protected String state;
...
}

According to the spec (12.2.5.1): "If the metadata-complete attribute of the embeddable element is specified as true, any annotations on the embeddable class (and its fields and properties) are ignored. When metadata-complete is specified as true and attributes and sub-elements of the embeddable element are omitted, the default values for those attributes and elements are applied.". However, the value of the street field in the Address class is not persistent.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-1396) metadata-complete in the orm file does not override @Transition annotation

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated OPENJPA-1396:
----------------------------------

    Affects Version/s:     (was: 2.0.0)
                       2.0.0-M3
        Fix Version/s:     (was: 2.0.0)
                       2.0.0-beta

> metadata-complete in the orm file does not override @Transition annotation 
> ---------------------------------------------------------------------------
>
>                 Key: OPENJPA-1396
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1396
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0-M3
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0-beta
>
>
> In the orm.xml:
> 	<embeddable class="embeddable.Address" metadata-complete="true"/
> where embeddable.Address is defined as:
> @Embeddable
> public class Address {
>     @Transient
>     protected String street;
>     protected String city;
>     
>     protected String state;
> ...
> }
> According to the spec (12.2.5.1): "If the metadata-complete attribute of the embeddable element is specified as true, any annotations on the embeddable class (and its fields and properties) are ignored. When metadata-complete is specified as true and attributes and sub-elements of the embeddable element are omitted, the default values for those attributes and elements are applied.". However, the value of the street field in the Address class is not persistent.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OPENJPA-1396) metadata-complete in the orm file does not override @Transition annotation

Posted by "Fay Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fay Wang resolved OPENJPA-1396.
-------------------------------

    Resolution: Fixed

> metadata-complete in the orm file does not override @Transition annotation 
> ---------------------------------------------------------------------------
>
>                 Key: OPENJPA-1396
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1396
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>             Fix For: 2.0.0
>
>
> In the orm.xml:
> 	<embeddable class="embeddable.Address" metadata-complete="true"/
> where embeddable.Address is defined as:
> @Embeddable
> public class Address {
>     @Transient
>     protected String street;
>     protected String city;
>     
>     protected String state;
> ...
> }
> According to the spec (12.2.5.1): "If the metadata-complete attribute of the embeddable element is specified as true, any annotations on the embeddable class (and its fields and properties) are ignored. When metadata-complete is specified as true and attributes and sub-elements of the embeddable element are omitted, the default values for those attributes and elements are applied.". However, the value of the street field in the Address class is not persistent.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.