I feel there must be far better ways to do what I do... that makes learning even funnier
Well, the problem is when I try to save the "prueba", hibernate JPA tells me
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not insert: [model.Inscripcion]
Caused by: java.sql.SQLException: Field 'id_prueba' doesn't have a default value
I feel there must be far better ways to do what I do... that makes learning even funnier
About the schema, a "prueba" has many "inscripcion", an "inscripcion" has ONLY one "prueba". So I don't agree that "prueba" should have a foreign key pointing "inscripcion", but "inscripcion" a foreign key pointing to "prueba". Don't you think so?
I feel there must be far better ways to do what I do... that makes learning even funnier
I feel there must be far better ways to do what I do... that makes learning even funnier
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
I feel there must be far better ways to do what I do... that makes learning even funnier
Consider Paul's rocket mass heater. |