I\'ve the following entity:
@Entity
public class Employee implements Serializable{
private static final long serialVersionUID = 3454567L;
@Id
@G
I have the same issue. This bug seems to have started with HB 4.3.6 and has survived, I am trying 4.3.10; with the same results.
It seems to me that the way entities' fields are accessed changed in HB 4.3.6+, probably related with the class loader. Prior to HB 4.3.6, embedding the DB driver jar file in the ear file works fine (very easy and clean for deployment). After 4.3.6, it doesn't work (with a class not found exception), now the driver jar file has to be put in the lib folder of Glassfish.
Juan