ok, solved, I've just Overrided the HashCode and Equals methods, that was all,
do not Override toString() method.
| @Override
| public boolean equals(Object obj) {
| if (obj == null) {
| return false;
| }
| if (getClass() != obj.getClass()) {
You need to use an SMPC with the entity converter and configure it
components.xml if not called entityManager.
I improved the error message in CVS (no more NPE :)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117398#4117398
Reply to the post :
http://www.j
I'm stuck on the exact same problem, if anyone has the answer, it would be
great.
Thanks :).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117327#4117327
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117327
ok, begginers mistake!, fixed! ( in the wrong line)
| ...
|
|
|
|
|
|
But the problem persist:
| java.lang.NullPointerException
| at
org.jboss.seam.ui.converter.EntityConverterStore.getEntityManager(EntityConverterStore.java:81)
| at
org.j
I updated the SeamProblemsFAQ to cover this in more depth - a more suitable
place I think.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044096#4044096
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044096
___
That sentence make sense now after all the trouble I have been through.
However, for a beginner, that sentence alone probably will not have much help
initially. It would be more helpful if it states that you have to this and that
or refer to the corresponding sections. Otherwise its become somet
"Reference Manual" wrote : The Seam Application Framework only works with
Seam-managed persistence contexts. By default, the components will look for a
persistence context named entityManager.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044018#4044018
Rep
After some debugging I found the cause of the problem my self. In
components.xml you need to configure managed-persistence-context and also in
persistence.xml you need to set "jboss.entity.manager.factory.jndi.name"
property for your database.
I try to learn seam from the hotel booking examp
Show your components.xml
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043764#4043764
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043764
___
jboss-user mailing list
jboss-
Here is the code
| public class FooHome extends EntityHome {
| @In EntityManage em
| @Transactional
| public String persist() {
| getEntityManager().joinTransaction();
| getEntityManager().persist( getInstance() );
| getEntityManager().flush();
|
You've got an NPE in you own code. Fix it. At least show the code that gives
the NPE!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043428#4043428
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043428
__
11 matches
Mail list logo