Hi all, I want to solve a problem with a BMP which represent many tables in a Postgres database. Each tables have 3 columns : id, name and image. My problem is when I want to get the lines from a table, the ejbLoad() method is not done by the bean when the id have ever been known before for an other table : example : Table1 id=1 ; name=toto ; image=toto.jpg id=2 ; name=tata ; image=tata.jpg id=3 ; name=titi ; image=titi.jpg
Table2 id=2 ; name=tutu ; image=tutu.jpg
When I get all lines from Table1, it works fine but when I ask for Table2, it returns : id=2 ; name=tata ; image=tata.jpg instead of id=2 ; name=tutu ; image=tutu.jpg.
Is somebody knows how to force the ejbLoad() to look in the database or knows another solution to solve this problem ???
It seems in your ejobLoad method you are calling Table1 in both cases. Please check to make sure your query calls Table2.
Sudhir V<br />(SCJP 1.2, SCWCD, OCA, SCBCD)
posted 13 years ago
Hi Sudhir, I'm sure not to call Table1 in both cases because if I call first Table2 the response is : id=2 ; name=tutu ; image=tutu.jpg And after if I call Table1 : id=1 ; name=toto ; image=toto.jpg id=2 ; name=tutu ; image=tutu.jpg id=3 ; name=titi ; image=titi.jpg I've check the problem, it comes from that ejbLoad() is not made when the id was asked before.
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.