Notice to Sender
================
This message was received by this installation but could not be
delivered to its intended cc:Mail recipient(s).
Original subject: Re: VARCHAR values are always the length of the field
Intended recipient(s) who DID NOT receive this message:
[EMAIL PROTECTED]
The following cc:Mail error(s) were recorded:
*** Message recipient is unknown ***
-------- Original Message Text --------
On Fri, 16 Feb 2001, Mikko Kurki-Suonio wrote:
> On Wed, 14 Feb 2001, Edson Carlos Ericksson Richter wrote:
>
> > But, how can I configure some Strings to VARCHAR(25) and others to
> > VARCHAR(100) in the ejb-jar.xml???
>
> Basically, you can't.
>
> BUT: You can hand-create the appropriate tables with the appropriate
> column types before deployment (or, depending on RDBMS capabilities, alter
> them afterwards). As I understand it, the database schema mapping is only
> really used during table autocreation.
You can also set the persistence types in orion-ejb-jar.xml.
The easy way to do this: deploy, let orion autocreate the tables; then
copy $ORION/application-deployments/[your app]/[your ejb
dir]/orion-ejb-jar.xml to an /orion dir in your EJB dir... hmm, man, that
sounds awful. It's a lot easier to show than it is to explain.
Let's assume your application is /projects/appA, called "appA," and your
EJB is in a directory,
appA/myejb. In that case, you'd copy
/usr/local/orion/application-deployments/appA/myejb/orion-ejb-jar.xml to
/projects/appA/myejb/orion/orion-ejb-jar.xml.
Now modify the copy in appA/myejb/orion/orion-ejb-jar.xml to include the
persistence-type attribute.
Whew! Now you delete the deployment directory and destroy the tables
created for the EJBs (the tables with the default attribute sizes.)
Redeploy; it'll now use the persistence types from the orion-ejb-jar.xml.
-----------------------------------------------------------
Joseph B. Ottinger [EMAIL PROTECTED]
http://epesh.com/ IT Consultant