ciao , ho fatto una query e ho usato il persist per salvare tutto sul db, soltanto che mi fallisce perchè mi dice:
org.hibernate.PropertyValueException: not-null property references a null or transient value
ciao , ho fatto una query e ho usato il persist per salvare tutto sul db, soltanto che mi fallisce perchè mi dice:
org.hibernate.PropertyValueException: not-null property references a null or transient value
Prova ad andare sui file xml per esempio
nomeDellaClasse.hbm.xml e setta nella column name il valore da true a false
per esempio:
dovrebbe andare, credo :P.Codice PHP:
<many-to-one name="nomeAttributo" class="tuaClasse" fetch="select"><column name="campo" not-null="false">
direi parlante.Originariamente inviato da Angyles
ciao , ho fatto una query e ho usato il persist per salvare tutto sul db, soltanto che mi fallisce perchè mi dice:
org.hibernate.PropertyValueException: not-null property references a null or transient value
una delle proprietà della tua entità ha un valore null, che non è consentito dalla mappatura dell'entità stessa.