[jboss-user] [EJB 3.0] - Re: ejb3 - setList(Set list) - fails to persist.

2007-03-13 Thread hanasakijiji
Hi Wlfgang and all... I will try to get the code posted soon. In the meantime... I have narrowed things down. What do you make of this? Class1 actually has two getters as above. Set getOwned1(); Set getOwned2(); Each has has its own jointable and all are connected by the Integer Primary Keys

[jboss-user] [EJB 3.0] - Re: ejb3 - setList(Set list) - fails to persist.

2007-03-12 Thread hanasakijiji
Unfortunately, the suggestion did not change the behavior. I have also double checked the "equals" method to be sure its working, and it is. Other thoughts? The same behavior is reproducable with: jboss 4.0.4, 4.0.5 windows, linux jdk 1.5.x and 1.6.x postgresql and mysql View the original post

[jboss-user] [EJB 3.0] - ejb3 - setList(Set list) - fails to persist.

2007-03-09 Thread hanasakijiji
reload the instance and call getList returns empty list. | | @OneToMany( | cascade= {CascadeType.ALL, CascadeType.ALL} | fetch=FetchType.EAGER) | @JoinTable( | name="myjointable", | joinColumns={ @JoinColumn(name="owner_fk") } | [EMAIL PROTECTED](name="owned_fk") | pub

[jboss-user] [EJB 3.0] - Re: EJB 2.1 and 3.0 in one web-app

2007-03-08 Thread hanasakijiji
When installing jboss 4.x, the installer says the container is either j2ee 1.4 (ie: ejb2) OR j2ee5 (ie: ejb3) - They appear to be mutually exclusive. You could leave the ejb2 and ejb3 stuff in their own appservers and call them remotely... View the original post : http://www.jboss.com/index.

[jboss-user] [EJB 3.0] - how to save (insert, del, update) dirty objects with agg

2007-03-08 Thread hanasakijiji
If the ejb is called with ejb.getStuff().add(someInstance); | * how to make jboss add the new row? | or | ejb.getStuff().get(4).setValue("my new value"); | * how to make jboss update the row? | or | Set set = new HashSet(); | ejb.setStuff(set); | * how to make jboss delete and

[jboss-user] [EJB 3.0] - Re: Using a parameter as order by column

2007-03-08 Thread hanasakijiji
do be careful of SQL injection if you are concatenating strings. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026348#4026348 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026348 __

[jboss-user] [EJB 3.0] - Re: howto? new entity persist with aggregates that are alrea

2007-03-07 Thread hanasakijiji
I agree that this makes sense and have tried this approach. JBoss throws an error, on deployment, and says that they MUST be explicitly set to false. :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025795#4025795 Reply to the post : http://www.jboss.com/

[jboss-user] [EJB 3.0] - why? 2nd call to session bean method detaches entity beans..

2007-03-06 Thread hanasakijiji
There is a servlet that gets a stateless session bean by its JNDI binding name. The servlet makes several calls to the session bean. Each call manipulates one, or more, entity beans. In some cases, an entity bean (CMP) is returned to the caller in the servlet. When this same entity bean inst

[jboss-user] [EJB 3.0] - Re: howto? Foreign key inserted as null - bug?

2007-03-06 Thread hanasakijiji
http://jira.jboss.com/jira/browse/EJBTHREE-694 Is this the bug? Any workarounds? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025510#4025510 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025510 _

[jboss-user] [EJB 3.0] - howto? new entity persist with aggregates that are already p

2007-03-06 Thread hanasakijiji
JBoss 4.0.5 - EJB3 - Entity Beans ** The problem is - the foreign key column is not set on the newInstance Row. thus the inserted value is NULL. There is an new instance of a class that is being worked on as follows: aggregate = // retrieve / find in database - ie: already persisted | newIns

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - msyql and postgresql - identity columns

2007-02-27 Thread hanasakijiji
how can the same ejb3 entity code be used with both MySQL and PostgreSQL on the primary keys (integers). The databases already exist - and cannot be modified mysql is AUTO_INCREMENT postgresql is SERIAL It looks like Identity can be used with mysql but not postgresql? Is the only way to fall

[jboss-user] [JBoss jBPM] - Re: rules engine, bpm, esb, msg'ing - functionality overlap?

2007-01-12 Thread hanasakijiji
Would anyone happen to have a specific example showing details? From a high level, it all makes sense. Devil is in the details :( Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001132#4001132 Reply to the post : http://www.jboss.com/index.html?modu

[jboss-user] [JBoss jBPM] - rules engine, bpm, esb, msg'ing - functionality overlap?

2007-01-11 Thread hanasakijiji
This is a business / architectural question - not necessarily a technical one. Looking for a paper/whitepaper etc discussing how the three of these all work together in an enterprise environment. As far as I can tell: Messaging gives an implementation under the JMS API and perhaps an adapter to