From: Chad B. <chd...@ya...> - 2004-08-11 12:04:52
|
Great I'm glad that worked for you :) ----- Original Message ----- From: "Roy Feldman" <ro...@tr...> To: "Andromda User" <and...@li...> Sent: Wednesday, August 11, 2004 3:22 AM Subject: Re: [Andromda-user] Problem with Hibernate Cartridge -invalidsql-type value for String typed attributes > > > Thanks Chad, > > Switching to dataype.String fixed the problem. Doh! How embarrassing. > <:-I > > > > On Tue, 2004-08-10 at 18:24, Chad Brandon wrote: > > Are you giving your class attribute in UML an actual "java.lang.String"? It > > should be "datatype.String" we map these language idependant datatypes to > > language specific types. > > > > Chad > > > > ----- Original Message ----- > > From: "Roy Feldman" <ro...@tr...> > > To: "Andromda User" <and...@li...> > > Sent: Tuesday, August 10, 2004 7:08 AM > > Subject: Re: [Andromda-user] Problem with Hibernate Cartridge - > > invalidsql-type value for String typed attributes > > > > > > > I just tried out my test case with the new release. No change > > > in behavior. > > > > > > On Mon, 2004-08-09 at 22:31, Roy Feldman wrote: > > > > Hi Everyone, > > > > > > > > I have tried generating persistent entities using the Hibernate > > > > cartridge in both the 3.0M1 release and todays snapshot, and I am > > > > getting the same problem. > > > > > > > > > > > > Every UML class attribute of type java.lang.String is getting > > > > the following XDoclet tags > > > > > > > > /** > > > > * > > > > * > > > > * @hibernate.property > > > > * column="<<column_name>>" > > > > * type="$attribute.type.fullyQualifiedHibernateType" > > > > * > > > > * @hibernate.column > > > > * name="<<column_name>" > > > > * sql-type="java.lang.String" > > > > */ > > > > > > > > > > > > For obvious reasons, XDoclet doesn't like java.lang.String as a value > > > > for sql-type. Do I need to edit a mapping file to fix this problem? > > > > > > > > > > > > One last note, I am using Strings for PrimaryKeys and I have the same > > > > problem with sql-type. > > > > > > > > FYI, > > > > > > > > In the Hibernate namespace I referring to JdbcMappings.xml and > > > > HypersonicSqlMappings.xml. Also, I am using a model generated from > > > > Poseidion 2.4.1. > > > > > > > > Any suggestions on what to do would be greatly appreciated. > > > > > > > > > > > > > > > > > > > > thanks, > > > > > > > > roy > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > > > > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > > > > one more big change to announce. We are now OSTG- Open Source Technology > > > > Group. Come see the changes on the new OSTG site. www.ostg.com > > > > _______________________________________________ > > > > Andromda-user mailing list > > > > And...@li... > > > > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > -- > > > > > > Roy Feldman > > > True Horizon Co. Ltd. > > > Software Park, 5th Floor, Incubator Center > > > 99/30 Chaengwattana Road > > > Pakkred, Nonthaburi, 11120, Thailand > > > http://www.truehorizon.com/ > > > Mobile: +66 (9) 777-5952 > > > Work: +66 (2) 583-5992 > > > USA: +1 (305) 433-7213 > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > > > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > > _______________________________________________ > > > Andromda-user mailing list > > > And...@li... > > > https://lists.sourceforge.net/lists/listinfo/andromda-user > > > > > -- > > Roy Feldman > True Horizon Co. Ltd. > Software Park, 5th Floor, Incubator Center > 99/30 Chaengwattana Road > Pakkred, Nonthaburi, 11120, Thailand > http://www.truehorizon.com/ > Mobile: +66 (9) 777-5952 > Work: +66 (2) 583-5992 > USA: +1 (305) 433-7213 > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Andromda-user mailing list > And...@li... > https://lists.sourceforge.net/lists/listinfo/andromda-user |