Ignoring Hibernate, defining an entity without a primary key is invalid data modelling in relational databases. An entity you can't uniquely identify in your data cannot participate in relationships so is not relational data.
Hibernate can only map to relational data, hence the error.
Why do you have to create a table without a primary key? Why can't you include a surrogate key?