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