How rishyendra30416/2400030416-fsad-skill-exam works
This small Hibernate demo creates a Movie record, updates it with HQL, and reports success. ClientDemo owns both operations and configures Hibernate with the movie mapping; the Movie entity maps to the movie table. The configuration file is present, but its contents were not provided, so the database connection target cannot be identified. The graph shows only relationships supported by the excerpts, with the ORM-to-database persistence link marked unverified.
Main entry points: ClientDemo.java Client demo · Movie.java Movie entity · hibernate.cfg.xml Hibernate config
Components 6
Demo Client
- Client demo
src/main/java/com/klef/fsad/exam/ClientDemo.java
Persistence
- Hibernate ORM
- Movie entity
src/main/java/com/klef/fsad/exam/Movie.java - Hibernate config
src/main/resources/hibernate.cfg.xml - Movie database
Other components
- Demo runner
Connections 5
- Demo runner → Client demo: runs
src/main/java/com/klef/fsad/exam/ClientDemo.java - Client demo → Hibernate config: loads config
src/main/java/com/klef/fsad/exam/ClientDemo.java - Client demo → Movie entity: creates entity
src/main/java/com/klef/fsad/exam/ClientDemo.java - Client demo → Hibernate ORM: opens session
src/main/java/com/klef/fsad/exam/ClientDemo.java - Hibernate ORM → Movie database: persists entity