Hi folks.

First of all, my working environment

JBOSS 3.2.5
PostgreSQL 7.2
JBOSS IDE 1.3 (xdoclet 1.2.1)

My question:

I am using Entities EJBs and they are being deployed just fine. 

My one and only problem is XDOCLET is not generating the exact SQL sentence to create 
tables.

That is:

----------------

        /**
         * @ejb.persistence
         *    sql-type="varchar(80)"
         * @jboss.persistence 
         *    not-null = "true"
         * @return
         */
        public abstract String getName();
        public abstract void setName(String name);

-----------------

This field is being created as "text" type in my PostgreSQL table instead of 
"varchar(80)". I though it would have been "varchar(80)" because it says so in XDOCLET 
tags documentation.

What am I doing wrong. My datasource mapping is: "PostgreSQL 7.2". Should it be 
something else? Why "sql-type" attribute seems to be ignored?

The jbosscmp-jdbc.xml tag generated for my example is:

---------

         <cmp-field>
            <field-name>name</field-name>
                        <not-null/>
        </cmp-field>
 
---------

Not <sql-type> tag!!! :'(

I tried MySQL and it works just fine in that database.

Thanks in advance!

-----
Pablo Santa

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846873#3846873

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846873


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to