[jboss-user] [JBoss Seam] - Re: Session problems

2007-06-12 Thread thierry.rietsch
Thank you very much, that worked wonderful. Unfortunately I ran into another problem. I have two EJBs and two facelets. Both EJBs have a collection (named inventoryObjects) which are annoted as DataModels (@DataModel). Both EJBs are Stateful with a SESSION scope. When I now open a facelet whic

[jboss-user] [JBoss Seam] - Session problems

2007-06-12 Thread thierry.rietsch
Hi I have a problem with sessions and JBoss Seam. I have a facelet which displays a collection of objects. In the EJB3 bean related to the facelet, I have a the @Factory() annotation which initalizes the collection with the apropriate objects. So far so good. The objects from the collection ge

[jboss-user] [JBoss Seam] - Re: Problem with injection

2007-05-31 Thread thierry.rietsch
Hi Sorry for the confusing question. My questsions are: - Is this correct, that the field annotated with @In needs to have the same name as the entity is annoted with @Name? - And yes how is polymorphism done over @In Sorry again and thanks for your answer! Thierry View the original post : h

[jboss-user] [JBoss Seam] - Problem with injection

2007-05-31 Thread thierry.rietsch
Hi all I have a problem with injection. I have an interface called SearchCriteria and three classes (Entities) which implement this interface. Additional I have an EJB which saves the entities in the database. The search criteria gets injected into the bean from the facelet. Therefor I have th

[jboss-user] [JBoss Seam] - Right way of querying a collection

2007-05-28 Thread thierry.rietsch
Hi all I try to get part of a collection over eql (or whatever the ejb query language is called). In the Hibernate tutorial it is suggested to use the criterias to get the data from a collection. As we are using JBoss Seam framework we would like to solve this problem directly over eql. | @

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Getting part of a collection with EQL

2007-05-25 Thread thierry.rietsch
Hi all I try to get part of a collection over hql. In the Hibernate tutorial it is sugested to use the criterias to get the data from a collection. As we are using JBoss Seam framework we rely on EJB. | @Entity | // ... | class SoftwareInventoryObject { | // other code | String n

[jboss-user] [JBoss Seam] - Re: Howto handle LazyInitializationException

2007-05-24 Thread thierry.rietsch
Now I got it. Sorry. I use now: | class SoftwareObjectSearchBean { | // other code | | @PersistenceContext(type=PersistenceContextType.EXTENDED) | EntityManager em; | | // other code | } | | Is that the right way? View the original post : http://www.jboss.com/inde

[jboss-user] [JBoss Seam] - Re: Howto handle LazyInitializationException

2007-05-24 Thread thierry.rietsch
Thank you for your reply. I have read through the articel in the JBoss Seam documentation. Unfortunately I din't fully understand it. Is there an example of an extended persistence context in the jboss-seam examples? Thanks again for your reply and your help, thierry View the original post :

[jboss-user] [JBoss Seam] - Howto handle LazyInitializationException

2007-05-24 Thread thierry.rietsch
Hello I have a problem with lazy loading and need a workaround. I have an Entity called SoftwareInventoryObject which contains a Collection of SoftwareInventoryObjectParts. | class SoftwareInventoryObject { | // other fields | List parts; | | // Getter & Setter | } | Add

[jboss-user] [JBoss Seam] - Embedded EJB

2007-05-14 Thread thierry.rietsch
Hi all We are using the JBoss Seam framework for a project at our university. Unfortunately no one of the project members has used Seam before and therefor we have some problems understanding the architecture of a JBoss Seam project. We have created such a project with the seam-gen tool and now