[jboss-user] [EJB 3.0] New message: "Re: howto setup jpa using oracle 10g unicode nvarchar2"

Michael Glöckner do-not-reply at jboss.com
Mon Mar 15 03:58:35 EDT 2010

User development,

A new message was posted in the thread "howto setup jpa using oracle 10g unicode nvarchar2":


Author  : Michael Glöckner
Profile : http://community.jboss.org/people/michael.gloeckner

Hi Jaikiran,
thanks anyway. I found a first solution for my purposes. Im using the orm.xml file to make an attribute overwriting. This allows me to set the database dependend informations into the orm.xml file instead of make annotations directly to the string attributes in java code. The handicap of this solution is, that you have to do the overwriting for every single string attribute where you want to use nvarchar2.

<?xml version="1.0" encoding="UTF-8"?>

  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm_1_0.xsd 1_0.xsd"

    <entity class="Customer" access="FIELD" metadata-complete="false">
         <attribute-override name="description">
              <column column-definition="nvarchar2(255)"/>



To reply to this message visit the message page: http://community.jboss.org/message/531916#531916

More information about the jboss-user mailing list