Hi,

Brilliant!

The point is that the tags are autogenerated by uml2ejb, so that's where
things went wrong then...

Thanks!

Hans

On Sun, 2002-12-08 at 23:10, Aslak Helles�y wrote:
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of SainTiss
> > Sent: 8. desember 2002 22:36
> > To: XDoclet Mailing
> > Subject: [Xdoclet-user] XDoclet generating wrong integer type...
> >
> >
> > Hi,
> >
> > I've got a problem using XDoclet with postgreSQL here...
> >
> > I've got this simple entity bean, with 1 primary key (String) field, and
> > one int field...
> >
> > Now XDoclet generates the following piece of jbosscmp-jdbc.xml:
> >
> > <defaults>
> >      <datasource>java:/PostgresDS</datasource>
> >      <datasource-mapping>PostgreSQL 7.2</datasource-mapping>
> >    </defaults>
> >
> >
> > <cmp-field>
> >             <field-name>myInt</field-name>
> >             <column-name>MY_INT</column-name>
> >
> >             <jdbc-type>INTEGER</jdbc-type>
> >             <sql-type>INTEGER(9)</sql-type>
> >
> > One would think this is correct, but INTEGER(9) is a syntax error in
> > postgreSQL...
> >
> > I checked the {jboss.home}server/default/conf/standardjbosscmp-jdbc.xml
> > file, but there's no INTEGER(9) in there, so I guess it's something
> 
> Huh? What does the XDoclet-generated jbosscmp-jdbc.xml have to do with
> standardjbosscmp-jdbc.xml? XDoclet knows nothing about
> standardjbosscmp-jdbc.xml.
> 
> > XDoclet specific?
> >
> 
> XDoclet doesn't invent INTEGER[9] out of the blue, it must come from your
> tags. You probably have
> 
> @ejb.persistence sql-type="INTEGER[9]"
> 
> or the deprecated tag
> 
> @jboss:sql-type type="INTEGER[9]"
> 
> somewhere in your code.
> 
> > If so, what can I do about this?
> >
> 
> Modify your tags.
> 
> Aslak
> 
> > Thanks
> >
> > Hans
> >
> >
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to