You can mark the applicationName or the ip address as the primary key (though not auto generated). It's ok even if neither of these columns are declared as primary keys in the database.
Read full article from java - JPA entity has no primary key? - Stack Overflow
No comments:
Post a Comment