Great...thanks for the update.

----- Original Message ----- 
From: "Martin West" <[EMAIL PROTECTED]>
To: "Chad Brandon" <[EMAIL PROTECTED]>
Sent: Thursday, July 29, 2004 7:38 AM
Subject: Re: [Andromda-user] Entity id error SEVERE: expected
type:java.lang.Long, actual value: java.lang.String


> that worked, thanks
>
> <property name=" defaultIdentifierType" value="datatype.String"/>
>
> On Thu, 2004-07-29 at 12:17, Chad Brandon wrote:
> > Hmmm yes bug, I'll need to fix that, Currently the default identifier is
set
> > to Long in the hibernate cartridge (since it inherits from the basic
> > metafacades), it needs to be set to String.  You can set the
> > "defaultIdentifierType " property in your namespace to make the default
> > identifiers Strings:
> >
http://team.andromda.org/docs/andromda-hibernate-cartridge/namespace.html.
> > However I'll fix the default in CVS to be String for the hibernate
> > cartridge.
> >
> > Chad
> >
> > ----- Original Message ----- 
> > From: "Martin West" <[EMAIL PROTECTED]>
> > To: "Andromda User" <[EMAIL PROTECTED]>
> > Sent: Thursday, July 29, 2004 7:10 AM
> > Subject: [Andromda-user] Entity id error SEVERE: expected type:
> > java.lang.Long, actual value: java.lang.String
> >
> >
> > > Andromda/Hibernate generated this for a base Entity
> > >
> > >     private java.lang.Long id;
> > >
> > >     /**
> > >      *
> > >      *
> > >      * @hibernate.id
> > >      *     generator-class="uuid.hex"
> > >      *     column="ID"
> > >      *     type="java.lang.Long"
> > >      *
> > >      * @hibernate.column
> > >      *     name="ID"
> > >      *     sql-type="BIGINT"
> > >
> > > However uuid.hex returns 32 char String, whereas the id property is
> > > defined as Long. Bug?
> > >
> > > Will try tweaking HibernateEntity.vsl
> > >
> > > 29-Jul-2004 11:25:48
> > > net.sf.hibernate.property.BasicPropertyAccessor$BasicSetter set
> > > SEVERE: IllegalArgumentException in class:
> > > net.starmap.cannonical.Entity, setter method of property: id
> > > 29-Jul-2004 11:25:48
> > > net.sf.hibernate.property.BasicPropertyAccessor$BasicSetter set
> > > SEVERE: expected type: java.lang.Long, actual value: java.lang.String
> > > Exception:net.sf.hibernate.PropertyAccessException:
> > > IllegalArgumentException occurred while calling setter of
> > > net.starmap.cannonical.Entity.id
> > > net.sf.hibernate.PropertyAccessException: IllegalArgumentException
> > > occurred while calling setter of net.starmap.cannonical.Entity.id
> > >
> > > -- 
> > > Martin West
> > > Head of Product Design and Development
> > > http://www.star-map.net
> > > +44(0)207 318 0308
> > > +44(0)787 968 0096
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > 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=4721&alloc_id=10040&op=click
> > > _______________________________________________
> > > Andromda-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/andromda-user
> >
> -- 
> Martin West
> Head of Product Design and Development
> http://www.star-map.net
> +44(0)207 318 0308
> +44(0)787 968 0096
>




-------------------------------------------------------
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=4721&alloc_id=10040&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to