Tables without primarys key?

"janpla" <[email protected]>
Newsgroups gmane.comp.java.netbeans.devel
Message-ID <[email protected]>
> Well it will not. JPA needs some identity for the entity, something that you will give to entityManager.find(Class, PK) method. 


Well, if you don't have a primary key, then you wouldn't go about using find() or other calls that require a primary key. What I after is only for NetBeans (or whatever module is used when you generate entity classes from the database) to open up and allow generation of entity classes from tables without primary keys. I imagine removing a restriction like that would be a small matter, not a huge undertaking. And I can't see that it would result in dirty APIs, since none of the existing methods would have to be modified in any way.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.