If I have a tinyint in the PK field, and even if the field is autoincrement, an exception is thrown when the newly created entity is added to the persistence manager. I forget what the exception name was, but I could reproduce it.
I also found that when I changed the PK/autoincrement field to a smallint, the problem went away.