Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Hibernate exception

  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2009
    Messaggi
    155

    Hibernate exception

    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

  2. #2

    Hibernate

    Prova ad andare sui file xml per esempio

    nomeDellaClasse.hbm.xml e setta nella column name il valore da true a false

    per esempio:

    Codice PHP:

    <many-to-one name="nomeAttributo" class="tuaClasse" fetch="select"><column name="campo" not-null="false"
    dovrebbe andare, credo :P.

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2002
    Messaggi
    633

    Re: Hibernate exception

    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
    direi parlante.
    una delle proprietà della tua entità ha un valore null, che non è consentito dalla mappatura dell'entità stessa.
    Alcuni miei articoli in PRO.HTML.IT: JavaScript | DHTML | DOM
    Sviluppo : wedev | forum

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.