How to map a search object to a class with more fields with JPA annotations
- by Moli
Hi all,
I'm a newbie with JPA.
I need to map a search object to a table.
The search object has only and id, name. The big object has more fileds id, name, adress and more.
I use this as big object
view plaincopy to clipboardprint?
I use this as big object
@Entity
@Table(name="users")
public class User {
@Id
@GeneratedValue(strategy =…