DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCJPA-78
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Oliver Ringel
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus API JPA

@Enumerated in combination with @Column leads to incorrect column definition

Created: 16/Sep/10 06:10 PM   Updated: 20/Oct/10 09:30 AM   Resolved: 21/Sep/10 09:30 PM
Component/s: None
Affects Version/s: 2.1.1
Fix Version/s: 2.1.2

Environment: Spring 3.0.3, HSQLDB, Maven 2.2.1

Datastore: HSQL
Severity: Production

 Description  « Hide
The combination of @Enumerated and @Column creates a column like 'INTEGER(255)' using HSQLDB.


Car {
    @Column(name = "COL")
    @Enumerated // or @Enumerated(EnumType.ORDINAL)
    private Color color;

The schema creation tries to create a column like 'COL INTEGER(255)'.

Andy Jefferson added a comment - 21/Sep/10 09:30 PM
SVN trunk works for me now. No idea on your test since no testcase was attached

Andy Jefferson made changes - 21/Sep/10 09:30 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 2.1.2 [ 11030 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 20/Oct/10 09:30 AM
Status Resolved [ 5 ] Closed [ 6 ]