Re: EJB/CMP entity bean question



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
.



Relevant Pages

  • Re: invoking a method
    ... Getters and Setters are used to encapsulate the ... to a string and add it to another string. ... the same as "inserting" it... ...
    (comp.lang.cobol)
  • Re: Get/Set vs Public Variables
    ... string firstname; ... EVER will need any functionality in getters and setters for the two string ... For example, if this was your typical business object, the name and last ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Get/Set vs Public Variables
    ... string firstname; ... EVER will need any functionality in getters and setters for the two string ... For example, if this was your typical business object, the name and last ...
    (microsoft.public.dotnet.languages.csharp)
  • Need expert advice on parsing a string into java beans
    ... I am having a hard time using recursion to parse the string back to the Java beans. ... private String address; // Setters and Getters} ...
    (comp.lang.java.programmer)
  • 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)