I have a table with two fields I would like to have two objects.
First one only has field1
@Entity(name = \"simpleTableObject\")
@Table(name = \"someTabl
Good question, I assume you have to look at @MappedSuperclass anotation. It allows to make an "abstract" entity class that would not be instantiated, however you can extend from that.
See example of that here
Update: Since you use @Entity anotation, you dont have to use @Table since Hibernate will create table named @Entity for you.