• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Junc Characters stored in Oracle DB by Entity Bean

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To All,

I have created one CMP Bean and in that CMP bean, I have one method declaration as follows (which will be implemented by the container).

public abstract void setReturnName(String returnName);

I am calling this method from another method (which is declared and defined in the same CMP) like this.

public boolean changeData(ReturnTypeTO returnType)
{
setReturnName("Return Type");
return true;
}

Now the problem is that in the database, if i look at the value, there are some junc characters are stored (and that is also starting 3 characters only)
I have perfectly defined the field name and everything in DTD.

I am using Oracle 8.1.7.0.0
and we are using classes12.zip for database drivers.


Can somebody throw light in this case...

Thanx...
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of field are the junk characters in. If it is a CLOB, that could be a problem. I have recently been debugging a problem with my code working on Oracle 9 and it was because I was using a CLOB field. That's just a guess on my part. I really have no other idea.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic