Index: topia-security/src/test/org/codelutin/topia/security/test/person/PersonImpl.java diff -u /dev/null topia-security/src/test/org/codelutin/topia/security/test/person/PersonImpl.java:1.1 --- /dev/null Fri Sep 15 13:01:54 2006 +++ topia-security/src/test/org/codelutin/topia/security/test/person/PersonImpl.java Fri Sep 15 13:01:49 2006 @@ -0,0 +1,39 @@ +/* + * *##% Copyright (C) 2005 Code Lutin, Cédric Pineau, Benjamin Poussin + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) any later + * version. + * + * This program 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 GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place - Suite 330, Boston, MA 02111-1307, USA. ##% + */ + +/******************************************************************************* + * PersonImpl.java + * + * Created: 28 déc. 2005 16:14:04 + * + * @author poussin + * + * @version $Revision: 1.1 $ + * + * Last update: $Date: 2006/09/15 13:01:49 $ by : $Author: ruchaud $ + */ + +package org.codelutin.topia.security.test.person; + +/** + * @author poussin + * + */ +public class PersonImpl extends PersonAbstract implements Person { + +} Index: topia-security/src/test/org/codelutin/topia/security/test/person/PersonAbstract.java diff -u /dev/null topia-security/src/test/org/codelutin/topia/security/test/person/PersonAbstract.java:1.1 --- /dev/null Fri Sep 15 13:01:54 2006 +++ topia-security/src/test/org/codelutin/topia/security/test/person/PersonAbstract.java Fri Sep 15 13:01:49 2006 @@ -0,0 +1,66 @@ +/* *##% + * Copyright (C) 2005 + * Code Lutin, Cédric Pineau, Benjamin Poussin + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +/* * + * PersonAbstract.java + * + * Created: 29 déc. 2005 00:27:53 + * + * @author poussin + * @version $Revision: 1.1 $ + * + * Last update: $Date: 2006/09/15 13:01:49 $ + * by : $Author: ruchaud $ + */ + +package org.codelutin.topia.security.test.person; + +import org.codelutin.topia.persistence.TopiaEntityAbstract; + +/** + * @author poussin + * + */ +public abstract class PersonAbstract extends TopiaEntityAbstract implements Person { + + protected String name; + + protected String firstname; + + public String getFirstname() { + return firstname; + } + + public void setFirstname(String firstname) { + String _oldValue = this.firstname; + this.firstname = firstname; + fireOnModifyProperty("firstName", _oldValue, firstname); + } + + public String getName() { + return name; + } + + public void setName(String name) { + String _oldValue = this.name; + this.name = name; + fireOnModifyProperty("name", _oldValue, name); + } + +} Index: topia-security/src/test/org/codelutin/topia/security/test/person/Person.java diff -u /dev/null topia-security/src/test/org/codelutin/topia/security/test/person/Person.java:1.1 --- /dev/null Fri Sep 15 13:01:54 2006 +++ topia-security/src/test/org/codelutin/topia/security/test/person/Person.java Fri Sep 15 13:01:49 2006 @@ -0,0 +1,64 @@ +/* *##% + * Copyright (C) 2005 + * Code Lutin, Cédric Pineau, Benjamin Poussin + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program 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 + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +/* * + * Person.java + * + * Created: 29 déc. 2005 00:27:53 + * + * @author poussin + * @version $Revision: 1.1 $ + * + * Last update: $Date: 2006/09/15 13:01:49 $ + * by : $Author: ruchaud $ + */ + +package org.codelutin.topia.security.test.person; + +import org.codelutin.topia.persistence.TopiaEntity; + +/** + * @author poussin + * + */ +public interface Person extends TopiaEntity { + + /** + * @return Returns the firstname. + */ + public abstract String getFirstname(); + + /** + * @param firstname The firstname to set. + */ + public abstract void setFirstname(String firstname); + + /** + * @return Returns the name. + */ + public abstract String getName(); + + /** + * @param name The name to set. + */ + public abstract void setName(String name); + +} + + Index: topia-security/src/test/org/codelutin/topia/security/test/person/PersonImpl.hbm.xml diff -u /dev/null topia-security/src/test/org/codelutin/topia/security/test/person/PersonImpl.hbm.xml:1.1 --- /dev/null Fri Sep 15 13:01:54 2006 +++ topia-security/src/test/org/codelutin/topia/security/test/person/PersonImpl.hbm.xml Fri Sep 15 13:01:49 2006 @@ -0,0 +1,16 @@ + + + + + + + + + + + + + +