I have a user entity bean, which uses CMP to make the persistence in a MySQL DB. So far so good. As the primary key of the bean, I have the username, which is a String. This works fine, but if the username contains a "-" char, the bean can't find the entity in the DB. Why is that ? Is a "-" char a speciel char which isn't allowed in primary keys or what ? Please help me.
Maybe its a restriction in your database?