Anonymous | Login | Signup for a new account | 12-17-2024 10:39 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0000971 | [Resin] | minor | always | 03-04-06 11:59 | 04-04-06 14:52 | ||||
Reporter | gzhu | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | urgent | Resolution | fixed | ||||||
Status | closed | Product Version | 3.0.18 | ||||||
Summary | 0000971: CMP entity bean set method does not work after bean creation and before any non-Primary Key getter is called | ||||||||
Description |
In our case, this is wrapped within a transaction enabled stateless session bean. A sample scenario is like this CMP Entity bean "Foo" fields: id(ejb.pk), name, description method: ejbCreate(int id, String name) -- start a transactional session bean --- FooHome h = ..JNDI lookup...; Foo f = h.create(10, "Some Name"); /** String myname = f.getName(); // a non-primary key getter **/ f.setDescription("Some Description"); --- end session bean --- Above code will not set description field, but it will if you uncomment that getName line. Not sure whether this will have the same incorrect behaviour if above code is not in the same transaction context. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |