openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski (JIRA)" <>
Subject [jira] Commented: (OPENJPA-224) columnDefinition on @Column doesn't work
Date Thu, 19 Apr 2007 15:27:15 GMT


Jacek Laskowski commented on OPENJPA-224:

What database do you use? I ran a test case with an entity annotated with @Column(name = "C_APPLICATION_NUMBER",
columnDefinition="nvarchar(250)") and guess what I'd got:

Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 4.062 sec <<< FAILURE!
setUp(pl.jaceklaskowski.jpa.issue.ATest)  Time elapsed: 0 sec  <<< FAILURE!
<0.9.8-incubating-SNAPSHOT nonfatal general error> org.apache.openjpa.persistence.PersistenceException:
Feature not implemented: NATIONAL CHAR VARYING. {stmnt 19762893 CREATE TABLE
[code=30000, state=0A000]
        at org.apache.openjpa.jdbc.meta.MappingTool.record(
        at org.apache.openjpa.jdbc.meta.MappingTool.record(
        at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.synchronizeMappings(
        at org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory.newBrokerImpl(
        at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(
        at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(
        at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(
        at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(
        at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(
        at pl.jaceklaskowski.jpa.BaseTest.setUp(

It works with OpenJPA 0.9.8-incubating-SNAPSHOT and Derby that doesn't support nvarchar (I
think some db dictionary translation is involved here so the type of DB is important to note).

Could you give 0.9.8-incubator-SNAPSHOT a shot? You'll need to build it from the sources.

> columnDefinition on @Column doesn't work
> ----------------------------------------
>                 Key: OPENJPA-224
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 0.9.6
>            Reporter: Daniel Gajdos
> I tried to specify @Column(name = "C_APPLICATION_NUMBER", columnDefinition="nvarchar(250)")
but it still generates C_APPLICATION_NUMBER VARCHAR2(255) as column declaration. I need to
user NVARCHAR2(250) to support national charset. Any idea why it doesn't work?

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

View raw message