User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
I mapped some classes to some tables with hibernate in Java, i set Hibernate to show SQL, it opens the session, it shows that it does the SQL, it closes the session but there are no modifications to the database.
Entity
publicclassProfesorimplementsComparable<Profesor>{privateint id;privateString nume;privateString prenume;privateint departament_id;privateSet<Disciplina> listaDiscipline;//the teacher gives some courses">courses}publicclassDisciplinaimplementsComparable<Disciplina>{//the course classprivateint id;privateString denumire;privateString syllabus;privateString schNotare;privateSet<Lectie> lectii;privateSet<Tema> listaTeme;privateSet<Grup> listaGrupuri;// the course gets teached/assigmened to some groups of studentsprivateSet<Assignment> listAssignments;}
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
3 years ago
I mapped some classes to some tables with hibernate in Java, i set Hibernate to show SQL, it opens the session, it shows that it does the SQL, it closes the session but there are no modifications to the database.
Entity
Mapping