Hi Jm,I guess you need to flush the new user using the Roller.flush() API or HibernatePersistenceStrategy.flush() depending on the environment.
Craig On Dec 5, 2006, at 10:52 AM, Jm Seigneur wrote:
Hello,I've been trying to create new roller users with HibernateUserManagerImpl as follows:...HibernatePersistenceStrategy strat = new HibernatePersistenceStrategy(); HibernateUserManagerImpl usersMan = new HibernateUserManagerImpl (strat); UserData jm = usersMan.getUserByUserName("Jm"); //This works and I retrieve my roller account informationlog.debug("Jm's email address is " + jm.getEmailAddress()); UserData newRollerUser = new UserData(); newRollerUser.setUserName(onlineUser.getMemberName()); newRollerUser.setPassword(memberPassword); newRollerUser.setFullName(memberFirstname + " " + memberLastname); newRollerUser.setEmailAddress(memberFirstEmail); newRollerUser.setLocale(jm.getLocale()); newRollerUser.setTimeZone(jm.getTimeZone()); newRollerUser.setDateCreated(memberCreationDate); newRollerUser.setEnabled(true);usersMan.addUser(newRollerUser); //It seems to work, there is no exception but the new user is not created in the database...Any idea why I can read the content of the database but I cannot write in the database ?Thanks, Jm
Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
smime.p7s
Description: S/MIME cryptographic signature
