Hello,
I am having some issues when trying to let a trigger fill ID. Hibernate does not allow me to set id "nullable = true" (id does nothing), and there is no way to let Hibernate know that i will treat it at DB, so it can be NULL on ID.
How can I do that? Can anyone help me?
Code:
@Entity
@Table(name = "TABLE_NAME")
public class ClassName extends BasicBusinessObject implements Serializable {
@Id
@Column(name = "ID", nullable = true)
private Long id;
...
...
Thanks in advance.
Edit: I am coming from MySQL and going to Oracle. I would like it to work with BOTH (changing only the connection and dialect parameters), that's why the 'null id' is necessary.