the data is correct in the database. But I now made another observation:
If the data is retrieved by:
Query query = new QueryByCriteria(Person.class, null);
return pb.getCollectionByQuery(query);the resulting collection is correctly instantiated.
But if I use
Criteria crit = new Criteria();
crit.addEqualTo("id", myId);
Query query = QueryFactory.newQuery(Person.class, crit, true);
res = pb.getObjectByQuery(query);I get the truncated data. So my first description wasn't quite correct - but something is very strange - in my opinion.
regards tino
Armin Waibel wrote:
Hi,
Tino Sch�llhorn wrote:
Hi,
I have (again) something weird which I suppose is just a configuration problem:
I have a class Person which has one LONGVARCHAR-Field. The first time the object is accessed the LONGVARCHAR-field is returned correctly.
hmm, does this mean first time after creation? Which cache was used?
Maybe first time after store it was found in cache, second time it was read from DB. So I assume your "database" truncate the String on insert.
Maybe I'm wrong ;-)
regards, Armin
But the second time it is accessed it returns just 256 (I suppose) characters.
I am using Access as 'database' but I don't think this is the problem.
Do you have any ideas what I could try? Tino
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
