Package pojo

Examples of pojo.Color


  }

  //get list color by id
  public Color getInfoColor(int id) {
    logger.debug("getInfoColor by id start");
    Color sp = null;
    Session session = HibernateUtil.getSessionFactory().openSession();
    try {
      sp = (Color) session.get(Color.class, id);
      logger.debug("getInfoColor by id success");
    } catch (HibernateException ex) {
View Full Code Here


  //del Color
  public boolean delColor(int id) {
    logger.debug("delColor start");
    Session session = HibernateUtil.getSessionFactory().openSession();
    Color u = (Color) session.get(Color.class, id);
   
    Transaction transaction = null;
    try {
      transaction = session.beginTransaction();
      session.delete(u);
View Full Code Here

TOP

Related Classes of pojo.Color

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.