I think that all are crazy... I have one wizard in my company that create persistent classes that are so easy, not "deploy-then-copy-to-here-then-change-then-copy-to-there-then-deploy"!!! Why not Application Deployment Wizard does not ask for what datasource we want to use, what table name, and presents some type of window to do the O-R mapping (using dbschema as defaults, for ones that want to use defaults)? M2c Edson Richter ----- Original Message ----- From: Joseph B. Ottinger <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 6:14 AM Subject: Re: VARCHAR values are always the length of the field > 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 > > >
Re: VARCHAR values are always the length of the field
Edson Carlos Ericksson Richter Fri, 16 Feb 2001 18:09:13 -0800
- Re: Deploy question... Johan Fredriksson
- Re: Deploy question... nickm
- Re: Deploy question... Joseph B. Ottinger
- Re: Deploy question..... nickm
- RE: Deploy question... Mike Bosch
- Re: Deploy question..... nickm
- Re: VARCHAR values are always the leng... Edson Carlos Ericksson Richter
- Re: VARCHAR values are always the ... Alex 'Kazuma' Garbagnati
- Re: VARCHAR values are always the ... Mikko Kurki-Suonio
- Re: VARCHAR values are always ... Joseph B. Ottinger
- RE: VARCHAR values are alw... Edson Carlos Ericksson Richter
- RE: VARCHAR values are always the leng... Chandika Mendis
- RE: VARCHAR values are always the ... Tim Endres
- SV: VARCHAR values are always the length of... Magnus Rydin