1 /* 2 * Sonar, entreprise quality control tool. 3 * Copyright (C) 2007-2008 Hortis-GRC SA 4 * mailto:be_agile HAT hortis DOT ch 5 * 6 * Sonar is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 3 of the License, or (at your option) any later version. 10 * 11 * Sonar is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with {library}; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 19 */ 20 package ch.hortis.sonar.service; 21 22 import org.slf4j.Logger; 23 import org.slf4j.LoggerFactory; 24 25 import javax.persistence.EntityManager; 26 27 public abstract class Dao { 28 protected final EntityManager manager; 29 protected final Logger log; 30 31 public Dao(EntityManager manager) { 32 this.manager = manager; 33 this.log = LoggerFactory.getLogger(this.getClass().getName()); 34 } 35 }