/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package test; import javax.persistence.Entity; import javax.persistence.Id; /** * * @author facun */ @Entity public class ObjectB{ @Id int id; public ObjectB(int id){ this.id=id; } }