[JBoss-user] [EJB 3.0] - Lazy polymorphic relations possible?

2006-06-07 Thread scraatz
Hi, we have an entity which has a many-to-one property that references a polymorphic entity. | @ManyToOne(cascade = {CascadeType.MERGE}, fetch = FetchType.EAGER) // EAGER | @JoinColumn(name = "wle_mbtid", unique = false, nullable = true, insertable = true, updatable = true) |

[JBoss-user] [JBoss Seam] - Re: NullPointerException when processing parallel Requests

2006-05-25 Thread scraatz
Gavin, When you say Seam does not handle concurrent request, you mean concurrent request within the same session (from the same user)? thanks Stefan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946533#3946533 Reply to the post : http://www.jboss.com/inde

[JBoss-user] [JBoss Seam] - Re: NullPointerException when processing parallel Requests

2006-05-25 Thread scraatz
The same happen when you click a s:link more than once while the first click is still being processed. | | | | This all happens on SEAM CR3 with JBoss 4.0.4.GA. Thanks Stefan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946510#3946510 Reply

[JBoss-user] [JBoss Seam] - NullPointerException when processing parallel Requests

2006-05-25 Thread scraatz
Hi, we are trying to start a new Conversation in a new window throu a Javascript function that is attached to an h:commandButton. When the button is clicked Seam throws a NullPointException in the new window. The window that executes the Javascript code is not part of any Seam conversation. H

[JBoss-user] [EJB 3.0] - Re: Fetching...Lazy but initialized?

2006-04-25 Thread scraatz
>From what I understand the effect is the same, but the EJB3 engine generates >different SQL-code. When you eager-load all the data is fetched in one big >SQL-JOIN query. A lazily fetched relation is queried in a separate SQL query. >If you always need the related entities it should be faster to

[JBoss-user] [EJB 3.0] - Re: Newbiy deployment trouble

2006-04-14 Thread scraatz
Tom, the format of the persistence.xml changed. The persistence unit is no longer automatically stored in JNDI. The following file works for me: | | | java:jdbc/WebappSample | | | | | | | |

[JBoss-user] [EJB 3.0] - Howto fetch lazy relations before an entity is detached

2006-04-14 Thread scraatz
Hi, is there a standard way to force fetching of lazy initialized related entities? We need to detach an object with lazyly loaded relations and access the related objects on the detached object. I found that when I access an non-id property of a ...toone relation object within the transaction

[JBoss-user] [JBoss Seam] - Re: Component Binding to conversation does not work

2006-03-23 Thread scraatz
Gavin, is this by design or will it be fixed in later versions? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932131#3932131 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932131 ---

[JBoss-user] [JBoss Seam] - Component Binding to conversation does not work

2006-03-22 Thread scraatz
Hi, we are trying to bind a faces UI component to a conversation.scope Java bean with SEAM 1.0B2 and myFaces 1.1.1/facelets. Whenever the form is postet SEAM complains that "no conversation is active" and throws an exception. | | Question: Am I doing something wrong? Is there a workarou