Hello all,
today I'm wondering about a really simple question:
I have a stateful session bean with @Name and Application-@Scope.
May I have a @PersistenceContext Hibernate session in this class?
What happens to such a Hibernate session? Will it be open all the time?
Of course, it is not desired to have it open all the time, but when I wrote the code, I simply didn't think about this question. Today I accidentally had a look at this code and was wondering what will happen ...
The SFSB prepares and caches some lists of entities which make up the configuration of the application.
Which is the right way to do this?
Marcus.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100669#4100669
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100669
I have the following relation in my application:
User (1-*) Address
One user has many addresses.
Mapped like a standard bidirectional OneToMany relationsship. This works fine.
I want to be able to edit this relationsship. How do I?
1) add new Addresses to the User that I'm currently looking at. (Open a form where I can input the address input fields but where the user is selected up front).
2) Edit addresses - like above but with both user and other input fields filled out up front. It should not be possible to change the user of the Address.
What I'm seeking is a good example of how to preload a form with values.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100660#4100660
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100660