Shree P

Head of Market Research at Woosper

Shree P has been working in the IT industry since 2011, when they began their role as Key Account Manager at Seasia Infotech. In this role, they were responsible for providing CMMi5 certified services such as IoT, mobile development, web development, cloud solutions, digital marketing, and B2B marketing to businesses worldwide. In 2017, Shree P took on the role of Head of Market Research at Woosper.

/*

* To change this license header, choose License Headers in Project Properties.

* To change this template file, choose Tools | Templates

* and open the template in the editor.

*/

package com.mycompany.javafx.electronicrecord.dao.impl;

import com.mycompany.javafx.electronicrecord.dao.interfaces.GroupDAO;

import com.mycompany.javafx.electronicrecord.model.Group;

import com.mycompany.javafx.electronicrecord.utill.HibernateUtill;

import java.sql.SQLException;

import java.util.List;

import org.hibernate.Session;

/**

*

* @author user07

*/

public class GroupDAOImpl implements GroupDAO {

@Override

public void addGroup(Group group) throws SQLException {

Session session = null;

try {

session = HibernateUtill.getSessionFactory().openSession();

session.beginTransaction();

session.save(group);

session.getTransaction().commit();

} catch (Exception e) {

e.printStackTrace();

} finally {

if (session != null && session.isOpen()) {

session.close();

}

}

}

@Override

public void deleteGroup(Group group) throws SQLException {

Session session = null;

try {

session = HibernateUtill.getSessionFactory().openSession();

session.beginTransaction();

session.delete(group);

session.getTransaction().commit();

} catch (Exception e) {

e.printStackTrace();

} finally {

if (session != null && session.isOpen()) {

session.close();

}

}

}

@Override

public Group getGroup(int id) throws SQLException {

Group result = null;

Session session = null;

try {

session = HibernateUtill.getSessionFactory().openSession();

Links

Timeline

  • Head of Market Research

    August, 2017 - present