You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 9 Members of 4089 |
| Forum: Seam Users |
28. Mar 2008, 14:52 CET | Link |
I'm trying to persist a entity inside a WebRemote method, but nothing happens, why?
@WebRemote
public void teste()
User user = new User();
user.setName("Joseph");
entityManager.persist(user);
}
The application runs ok, and the debug doesn't show any errors, but entity doesn't persists.
I put merge instead persist and they together too.
What's is the correct way to work?