To end this pain. I checked that db.props for Oracle had the correct mapping for size="4000" type="VARCHAR"( I have not touched this file for a very long time ) and then ran "ant project-om" which regenerates the OM classes and then "ant compile". All is back to as expected, it is mapped to a varchar2(4000). I have no idea how it could have had a different version of db.props that would be required to generate classes with the incorrect mapping =8(
Too weird David -----Original Message----- From: David Wynter [mailto:[EMAIL PROTECTED]] Sent: 27 September 2002 12:11 To: Turbine Users List Subject: RE: Problem with getting 4000 byte String from Peer Moving on from the reason for the change that is outlined below I need to fix the code that access what was previously returned as a String class and is now returned as a byte array. When the Peers write a String into a BLOB what encoding is used. To be able to create the String from th ebytwe array I need to know the encoding used during the wrting of the string into the BLOB. In other words I figure I can do somethign like replace the statement shown below in th eoriginal emial with somethign like String aQuery=new String(aView.getQuery(), "ISO-8859-1"); Sound OK? David -----Original Message----- From: David Wynter [mailto:[EMAIL PROTECTED]] Sent: 27 September 2002 11:48 To: Turbine-User Subject: Problem with getting 4000 byte String from Peer Hi, I have a Turbine application that worked, and now, suddenly it doesn't. I have the following line in my schema.xml file <column name="query" size="4000" type="VARCHAR"/> the peers etc. generate fine against a Oracle database. I have the following line in my a class that uses with entity containing the colun above RwView aView=RwViewPeer.retrieveByPK(aViewKey); String aQuery=aView.getQuery(); <----- at line 438 I get this error when i try to compile. "TransformControl.java": Error #: 354 : incompatible types; found: byte[], required: java.lang.String at line 438, column 45 I must have regenerated the Peers at some time using ant. My question is: when did the templates change from returning a CString to returning a byte array? Thanks David Wynter roamware Ltd. (+44) (0) 208 922 7539 B. (+44) (0) 7879 605 706 M. [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
