Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Bug in mapping.

Hiran Chaudhuri

2008-07-07

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi there.

With entities generated from the database I keep getting such exceptions:
org.apache.openjpa.persistence.PersistenceException: Invalid value for
getInt() - 'N'

When I workaround one such exception, I get the next one, and it seems that
all of them occur on fields that are CHAR(1) not nullable in the database
and were mapped to char. Char is not even shown in the example code, which
means it might have skipped to be tested completely.

Seeing this as a global issue, I want to fix it globally. Can FieldStrategy
be an overall solution? And if yes, how do I introduce my strategy to
OpenJPA?

Hiran Chaudhuri


©2008 gg3721.com - Jax Systems, LLC, U.S.A.