Find what the problem is.:
cd /home/user/NetBeansProjects/HibernateLearningVideos03And04; JAVA_HOME=/app/jdk /app/netbeans/java/maven/bin/mvn -Dexec.vmArgs= "-Dexec.args=${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}" -Dexec.executable=/app/jdk/bin/java -Dexec.mainClass=com.mycompany.hibernatelearningvideos03and04.client.ClientCode -Dexec.classpathScope=runtime -Dexec.appArgs= process-classes org.codehaus.mojo:exec-maven-plugin:3.1.0:exec
Scanning for projects...

------------< com.mycompany:HibernateLearningVideos03And04 >------------
Building HibernateLearningVideos03And04 1.0-SNAPSHOT
  from pom.xml
--------------------------------[ jar ]---------------------------------

--- resources:3.3.0:resources (default-resources) @ HibernateLearningVideos03And04 ---
Copying 1 resource

--- compiler:3.10.1:compile (default-compile) @ HibernateLearningVideos03And04 ---
Nothing to compile - all classes are up to date

--- exec:3.1.0:exec (default-cli) @ HibernateLearningVideos03And04 ---
Hello World!
Sep. 06, 2023 2:20:35 A.M. org.hibernate.Version logVersion
INFO: HHH000412: Hibernate ORM core version 6.2.7.Final
Sep. 06, 2023 2:20:35 A.M. org.hibernate.cfg.Environment <clinit>
INFO: HHH000406: Using bytecode reflection optimizer
org.hibernate.boot.MappingNotFoundException: Mapping (RESOURCE) not found : com/mycompany/hibernatelearningvideos03and04/model/student.hbm.xml : origin(com/mycompany/hibernatelearningvideos03and04/model/student.hbm.xml)
	at org.hibernate.boot.jaxb.internal.XmlSources.fromResource(XmlSources.java:48)
	at org.hibernate.boot.MetadataSources.addResource(MetadataSources.java:329)
	at org.hibernate.cfg.Configuration.addResource(Configuration.java:619)
	at com.mycompany.hibernatelearningvideos03and04.util.HibernateUtil.<clinit>(HibernateUtil.java:20)
	at com.mycompany.hibernatelearningvideos03and04.client.ClientCode.main(ClientCode.java:18)
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time:  6.110 s
Finished at: 2023-09-06T02:20:36-04:00
------------------------------------------------------------------------

and

/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 */

package com.mycompany.hibernatelearningvideos03and04.client;

import com.mycompany.hibernatelearningvideos03and04.model.Student;
import com.mycompany.hibernatelearningvideos03and04.util.HibernateUtil;
import org.hibernate.Session;
import org.hibernate.Transaction;

public class ClientCode {

    public static void main(String[] args) {
        System.out.println("Hello World!");
        Transaction tx = null;
        try {
            Session session = HibernateUtil.getSessionFactory().openSession();
            
            Student st = new Student();
            st.setId(1);
            st.setName("Hibernate");
            st.setEmail("hibernate@123");
            st.setPhone(12345);
             
            session.save(st);
        } catch(Exception e) {
            //
        }
    }
}

and

<?xml version = "1.0" encoding = "utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC 
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> 

<hibernate-mapping>
   <class name = "Student" table = "students">
      
      <id name = "id" type = "int" column = "id">
         <generator class="increment"/>
      </id>
      
      <property name = "name" column = "name" type = "string"/>
      <property name = "email" column = "email"/> <!-- No need to explicitly state string type. -->
      <property name = "phone" column = "phone" type = "Long"/>
      
   </class>
</hibernate-mapping>

and

<?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>
        <!-- Database connection settings -->
        <property name="connection.driver_class">org.sqlite.JDBC</property>
        <property name="connection.url">jdbc:sqlite:mydatabaseyo.sqlite</property>
        
        <!-- SQL dialect for SQLite -->
        <!-- <property name="dialect">org.hibernate.dialect.SQLiteDialect</property> -->
        <property name="hibernate.dialect">org.hibernate.community.dialect.SQLiteDialect</property> <!-- <property name="hibernate.dialect">org.hibernate.dialect.SQLiteDialect</property> -->
        <mapping resource="com/mycompany/hibernatelearningvideos03and04/model/student.hbm.xml"/>
    </session-factory>
</hibernate-configuration>

and

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany</groupId>
    <artifactId>HibernateLearningVideos03And04</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
        <exec.mainClass>com.mycompany.hibernatelearningvideos03and04.HibernateLearningVideos03And04</exec.mainClass>
    </properties>
    <dependencies>
        <!-- https://mvnrepository.com/artifact/org.hibernate.orm/hibernate-core -->
        <dependency>
            <groupId>org.hibernate.orm</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>6.2.7.Final</version>
        </dependency>
         <!--https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc--> 
        <dependency>
            <groupId>org.xerial</groupId>
            <artifactId>sqlite-jdbc</artifactId>
            <version>3.42.0.0</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.hibernate.orm/hibernate-community-dialects -->
        <dependency>
            <groupId>org.hibernate.orm</groupId>
            <artifactId>hibernate-community-dialects</artifactId>
            <version>6.2.7.Final</version>
        </dependency>
    </dependencies>
</project>

and

/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.mycompany.hibernatelearningvideos03and04.util;

import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
    private static SessionFactory sessionFactory;
    
    static {
        if(sessionFactory == null) {
            try {
                Configuration cfg = new Configuration().configure();
                ///home/user/NetBeansProjects/HibernateLearningVideos03And04/src/main/java/
                cfg.addResource("com/mycompany/hibernatelearningvideos03and04/model/student.hbm.xml");
                StandardServiceRegistry ssRegistry = new StandardServiceRegistryBuilder().applySettings(cfg.getProperties()).build();
                sessionFactory = cfg.buildSessionFactory(ssRegistry);
            } catch(Exception e) {
                e.printStackTrace();
            }
        }
    }
    public static SessionFactory getSessionFactory() {
        return sessionFactory;
    }
}

and

/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.mycompany.hibernatelearningvideos03and04.model;

/**
 *
 * @author user
 */
public class Student {
    private int id;
    private String name;
    private String email;
    private long phone;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public long getPhone() {
        return phone;
    }

    public void setPhone(long phone) {
        this.phone = phone;
    }
}