Re: EJB/CMP entity bean question
Alfred <user@xxxxxxxxxxx> wrote in
news:4844c824_3@xxxxxxxxxxxxxxx:
Donkey Hot wrote:
Lets have an entitybean, say UserBean
class UserBean extends EntityBean
{
Long id ;
String name ;
Integer height ;
...
// and the getters and setters
}
// and the Local and Remote interfaces... and a POJO with similar
// properties..
...
An CMP Entity Bean does not have fields, but only
abstract getter/setter. Synchronization with DB
is a part of EJB Container.
Alfred
True. That was a typo on my part.
.
Relevant Pages
- Re: OO in Python? ^^
... > getters and setters in Java? ... getters, then it makes sense to write setters and getters. ... insurance against you changing the private interface. ... > a hack in Python (common, "hiding" an implementation detail by prefixing ... (comp.lang.python) - Re: "Getter" methods no good?
... The fear is that if you have getters and setters on an object, then other objects are going to extract the private data of the object, do some processing on it and write it back. ... there are many cases where instance variables of an object are fundamental to the object's behavior and you need to be able to set them or get them. ... BTW, I wrote a physics simulator myself and found that the best algorithm to solve the physics equations was to extract the positions and velocities from the particles, store them into one big vector, run Adaptive Runge Kutta on the vector, then write all the data back. ... (comp.lang.smalltalk) - Re: Holub on getters/setters again
... In this post by DanielT, I find that DanielT is blatantly guilty of ... >> A class with lots of getters and setters may be an indication of ... >> and setters. ... I'm outraged at both DanielT and RCM, and any one of good conscience ... (comp.object) - Re: How to write Smart Python programs?
... Do not write getters and setters. ... In Java, you have to use getters and setters because using public fields gives you no opportunity to go back and change your mind later to using getters and setters. ... In Python, this is silly, because you can start with a normal attribute and change your mind at any time, without affecting any clients of the class. ... (comp.lang.python) - Re: How to write Smart Python programs?
... "Getters and setters are evil. ... Do not write getters and setters. ... def getx: return self._x ... (comp.lang.python) |
|