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/12/15 19:45:18 UTC

[jira] Created: (OPENJPA-1431) @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection

@Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection
-------------------------------------------------------------------------------------------------------

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


1) With these annotations:
    @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
    @ElementCollection(fetch = FetchType.EAGER)
    @Temporal(TemporalType.DATE)
    @Column(name = "value")
    @OrderColumn(name = "valueOrderColumn")
    //@Temporal(TemporalType.DATE)
    private Collection<Date> collectionDate;

The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, VALUE, VALUEORDERCOLUMN

(2) With these annotations:
    @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
    @ElementCollection(fetch = FetchType.EAGER)
    //@Temporal(TemporalType.DATE)
    @Column(name = "value")
    @OrderColumn(name = "valueOrderColumn")
    @Temporal(TemporalType.DATE)
    private Collection<Date> collectionDate;

The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, ELEMENT, VALUEORDERCOLUMN




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


[jira] Resolved: (OPENJPA-1431) @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection

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

Fay Wang resolved OPENJPA-1431.
-------------------------------

    Resolution: Fixed

> @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1431
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1431
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 1) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     @Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     //@Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, VALUE, VALUEORDERCOLUMN
> (2) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     //@Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     @Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, ELEMENT, VALUEORDERCOLUMN

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


[jira] Updated: (OPENJPA-1431) @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection

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

Donald Woods updated OPENJPA-1431:
----------------------------------

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

> @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1431
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1431
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0-M3
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>            Priority: Minor
>             Fix For: 2.0.0-beta
>
>
> 1) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     @Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     //@Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, VALUE, VALUEORDERCOLUMN
> (2) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     //@Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     @Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, ELEMENT, VALUEORDERCOLUMN

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


[jira] Closed: (OPENJPA-1431) @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection

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

Fay Wang closed OPENJPA-1431.
-----------------------------


> @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1431
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1431
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 1) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     @Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     //@Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, VALUE, VALUEORDERCOLUMN
> (2) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     //@Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     @Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, ELEMENT, VALUEORDERCOLUMN

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


[jira] Updated: (OPENJPA-1431) @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection

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

Donald Woods updated OPENJPA-1431:
----------------------------------

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

> @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1431
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1431
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0-M3, 2.0.0-beta
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>            Priority: Minor
>             Fix For: 2.0.0-beta2
>
>
> 1) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     @Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     //@Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, VALUE, VALUEORDERCOLUMN
> (2) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     //@Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     @Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, ELEMENT, VALUEORDERCOLUMN

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


[jira] Commented: (OPENJPA-1431) @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection

Posted by "Thomas O Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796254#action_12796254 ] 

Thomas O Rowe commented on OPENJPA-1431:
----------------------------------------

Fix verified on Linux AMD64 w/ Sun SE6 for JSE, web, and EJB scenarios.

> @Temporal annotation overrides the @Column annotation when using in conjunction with @ElementCollection
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1431
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1431
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Fay Wang
>            Assignee: Fay Wang
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 1) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     @Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     //@Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, VALUE, VALUEORDERCOLUMN
> (2) With these annotations:
>     @CollectionTable(name = "collectionTemporalOrderColumnTable", joinColumns = @JoinColumn(name = "parent_id"))
>     @ElementCollection(fetch = FetchType.EAGER)
>     //@Temporal(TemporalType.DATE)
>     @Column(name = "value")
>     @OrderColumn(name = "valueOrderColumn")
>     @Temporal(TemporalType.DATE)
>     private Collection<Date> collectionDate;
> The collectionTemporalOrderColumnTable is created with the following columns: PARENT_ID, ELEMENT, VALUEORDERCOLUMN

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