Package pojo

Examples of pojo.Type


  }

  // get info of type by id
  public Type getTypeInfo(String idType) {
    logger.debug("getTypeInfo start");
    Type type = null;
    Session session = HibernateUtil.getSessionFactory().openSession();
    try {
      type = (Type) session.get(Type.class, idType);
      logger.debug("getTypeInfo success");
    } catch (HibernateException ex) {
View Full Code Here


  // delete a type from database by id
  public boolean delType(String idType) {
    logger.debug("delType start");
    Session session = HibernateUtil.getSessionFactory().openSession();
    Type sp = (Type) session.get(Type.class, idType);
    if (sp == null) {
      return false;
    }
    Transaction transaction = null;
    try {
View Full Code Here

TOP

Related Classes of pojo.Type

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.