Download our latest MNC Answers Application at Play Store. Download Now

Mini-Project - Java Fullstack Developer - Hibernate Hands-on Solutions | TCS Fresco Play

Mini-Project - Java Fullstack Developer - Hibernate Hands-on Solutions | TCS Fresco Play

Mini-Project - Java Fullstack Developer - Hibernate Hands-on Solutions

Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.

Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).

All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!

Course ID - 63430

1.Hibernate - Hands-on

Welcome to Java Developer - Hibernate


File Name - hibernate.cfg.xml


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-configuration PUBLIC

        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"

        "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

    <session-factory>

      <property name="connection.driver_class">org.h2.Driver</property>


        <property name="connection.url">jdbc:h2:mem:test</property>


        <property name="connection.username">sa</property>


        <property name="connection.password"></property>


        <property name="connection.pool_size">1</property>


        <property name="dialect">org.hibernate.dialect.H2Dialect</property>


        <property name="show_sql">true</property>


        <property name="current_session_context_class">thread</property>


        <property name="hbm2ddl.auto">create-drop</property>


        <property name="hibernate.dbcp.initialSize">5</property>


        <property name="hibernate.dbcp.maxTotal">20</property>


        <property name="hibernate.dbcp.maxIdle">10</property>


        <property name="hibernate.dbcp.minIdle">5</property>


        <property name="hibernate.dbcp.maxWaitMillis">-1</property>


        <mapping class="com.fresco.DemoHib.Student" />


        <mapping class="com.fresco.DemoHib.Laptop" />

    </session-factory>

</hibernate-configuration>





**************************************************
If you have any queries, please feel free to ask on the comment section.
If you want MCQs and Hands-On solutions for any courses, Please feel free to ask on the comment section too.

Please share and support our page!