--- /dev/null
+/*
+* Copyright © FYLAB and the Conseil Régional d'Île-de-France, 2009
+* This file is part of L'Interface Libre et Interactive de l'Enseignement (Lilie).
+*
+* Lilie is free software. You can redistribute it and/or modify since
+* you respect the terms of either (at least one of the both license) :
+* - under the terms of the GNU Affero General Public License as
+* published by the Free Software Foundation, either version 3 of the
+* License, or (at your option) any later version.
+* - the CeCILL-C as published by CeCILL-C; either version 1 of the
+* License, or any later version
+*
+* There are special exceptions to the terms and conditions of the
+* licenses as they are applied to this software. View the full text of
+* the exception in file LICENSE.txt in the directory of this software
+* distribution.
+*
+* Lilie is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* Licenses for more details.
+*
+* You should have received a copy of the GNU General Public License
+* and the CeCILL-C along with Lilie. If not, see :
+* <http://www.gnu.org/licenses/> and
+* <http://www.cecill.info/licences.fr.html>.
+*/
+package org.lilie.services.eliot.backoffice
+
+import org.lilie.services.eliot.scolarite.Etablissement
+
+class BackofficeConfig {
+
+ Long id
+ String uai
+ Boolean lvs = false
+ Boolean udt = false
+ Integer nombreEleve
+ String nom
+ BaseEleve baseEleve
+
+ static belongsTo = [baseEleve:BaseEleve]
+
+ static constraints = {
+ baseEleve(nullable: true)
+ nombreEleve(nullable: true)
+ nom(nullable: true)
+ udt(nullable: true)
+ lvs(nullable: true)
+
+ }
+
+ static mapping = {
+ table('backoffice.backoffice_config')
+ id column: 'id', generator: 'sequence', params: [sequence: 'backoffice.backoffice_config_id_seq']
+ }
+
+ public String toString() {
+ return "BackofficeConfig{uai=$uai}"
+ }
+
+ boolean equals(o) {
+ if (this.is(o)) {return true}
+
+ if (getClass() != o.class) {return false}
+
+ BackofficeConfig that = (BackofficeConfig) o;
+
+ if (uai != that.uai) {return false}
+ if (baseEleve != that.baseEleve) {return false}
+ if (lvs != that.lvs) {return false}
+ if (udt != that.udt) {return false}
+ if (nombreEleve != that.nombreEleve) {return false}
+ if (nom != that.nom) {return false}
+
+ return true;
+ }
+
+
+}