Update of
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/person
In directory
james.mmbase.org:/tmp/cvs-serv6553/community/src/java/com/finalist/cmsc/services/community/person
Modified Files:
PersonHibernateService.java
Log Message:
CMSC-907 - Fixed bad code constructions and did some improvements
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/person
See also: http://www.mmbase.org/jira/browse/CMSC-907
Index: PersonHibernateService.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Modules/community/src/java/com/finalist/cmsc/services/community/person/PersonHibernateService.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- PersonHibernateService.java 3 Jul 2008 20:29:29 -0000 1.7
+++ PersonHibernateService.java 4 Jul 2008 08:04:20 -0000 1.8
@@ -82,7 +82,7 @@
throw new IllegalArgumentException("authenticationId is not filled
in. ");
}
- if (authenticationId != null) {
+ //Create a new person and store it
Person person = new Person();
person.setFirstName(firstName);
person.setInfix(infix);
@@ -90,8 +90,7 @@
person.setAuthenticationId(authenticationId); // used to find account
getSession().save(person);
return person;
- }
- return null;
+
}
/** [EMAIL PROTECTED] */
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs