Re: [appfuse-user] Re: Trying to save some data in database when login

2010-05-20 Thread Matt Raible
;> I have found that deleting "true" works. >> >> Maybe it's wrong? >> >> - Original Message ----- From: "Matt Raible" >> To: >> Cc: >> Sent: Thursday, May 20, 2010 6:54 PM >> Subject: Re: [appfuse-user] Re: Trying to

Re: [appfuse-user] Re: Trying to save some data in database when login

2010-05-20 Thread Juan Antonio
It is possible to recompile the application without fire the tests? Thanks. - Original Message - From: "Matt Raible" To: Sent: Thursday, May 20, 2010 7:34 PM Subject: Re: [appfuse-user] Re: Trying to save some data in database when login There's nothing wrong w

Re: [appfuse-user] Re: Trying to save some data in database when login

2010-05-20 Thread Matt Raible
Message - From: "Matt Raible" > To: > Cc: > Sent: Thursday, May 20, 2010 6:54 PM > Subject: Re: [appfuse-user] Re: Trying to save some data in database when > login > > >> I'd try removing it completely or look at the hibernate3 plugin (creates &

Re: [appfuse-user] Re: Trying to save some data in database when login

2010-05-20 Thread Juan Antonio
I have found that deleting "true" works. Maybe it's wrong? - Original Message - From: "Matt Raible" To: Cc: Sent: Thursday, May 20, 2010 6:54 PM Subject: Re: [appfuse-user] Re: Trying to save some data in database when login I'd try removin

Re: [appfuse-user] Re: Trying to save some data in database when login

2010-05-20 Thread Matt Raible
I'd try removing it completely or look at the hibernate3 plugin (creates tables) or the dbunit plugin (deletes data, inserts test data). On May 20, 2010, at 10:52 AM, Juan Antonio wrote: I have found the problem. The problem was the createDatabaseIfNotExist, that deleted the data stor

[appfuse-user] Re: Trying to save some data in database when login

2010-05-20 Thread Juan Antonio
I have found the problem. The problem was the createDatabaseIfNotExist, that deleted the data stored in the database. :P I have set it at false "?createDatabaseIfNotExist=false" but it stills ovewriting the database. What should i do? Thanks. -- View this message in context: http://appfuse.5

[appfuse-user] Re: Trying to save some data in database when login

2010-05-19 Thread Juan Antonio
I don't undertand. Could you give me an example? Thanks. - Original Message - From: mraible [via AppFuse] To: Juan Antonio Sent: Wednesday, May 19, 2010 5:50 PM Subject: Re: Trying to save some data in database when login I would try adding a super.flush() after you per

Re: [appfuse-user] Re: Trying to save some data in database when login

2010-05-19 Thread Matt Raible
I would try adding a super.flush() after you persist the data. On Wed, May 19, 2010 at 9:44 AM, Juan Antonio wrote: > > I am experience a problem with a query. > > Previous to save data to database, i try to find if there is already data > related to the user: > > The final query, in UserDataDao.

[appfuse-user] Re: Trying to save some data in database when login

2010-05-19 Thread Juan Antonio
I am experience a problem with a query. Previous to save data to database, i try to find if there is already data related to the user: The final query, in UserDataDao.java is this: public UserData findByIdClient(long userId) throws NoSuchUserDataException { List usersData = getHibernateTemp

[appfuse-user] Re: Trying to save some data in database when login

2010-04-22 Thread Juan Antonio
I could answer myself :D It's possible to recover a bean from de applicationContext.xml and execute a method in it. Here is a good example: http://www.mkyong.com/spring/spring-how-to-do-dependency-injection-in-your-session-listener/ Greetings -- View this message in context: http://appfuse.

Re: [appfuse-user] Re: Trying to save some data in database when login

2010-04-22 Thread Matt Raible
I believe Spring Security publishes events you can listen for. On Apr 22, 2010, at 6:29 PM, Juan Antonio wrote: This type of spring listeners will fire when login? Thanks -- View this message in context: http://appfuse.547863.n4.nabble.com/Trying-to-save-some-data-in-database-when-login-

[appfuse-user] Re: Trying to save some data in database when login

2010-04-22 Thread Juan Antonio
This type of spring listeners will fire when login? Thanks -- View this message in context: http://appfuse.547863.n4.nabble.com/Trying-to-save-some-data-in-database-when-login-tp2022951p2022998.html Sent from the AppFuse - User mailing list archive at Nabble.com. --