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
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
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
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.
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
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
__
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/
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
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 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
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
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
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
13 matches
Mail list logo