Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Junc Characters stored in Oracle DB by Entity Bean

 
Nilesh Soni
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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...
 
Brian Tinnel
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic