just kidding with cmp...

From: Andrea Sansottera (andrea.sansottera_at_fastwebnet.it)
Date: 07/16/04


Date: Fri, 16 Jul 2004 11:40:05 +0200

Hi all guys,
I'm looking for a few suggestions on ejb cmp. I'm using j2ee sdk 1.4,
pointbase database server.
1) I have too check for the values of a few properties of an entity bean
        before they are stored on the database. For example, I have in my bean
        class:

        public abstract void setAcidity(double acidity);

        but I want, for instance, acidity to be greater than -4... how can I do
        this? Should I use bean managed persistance and write jdbc code for *all*
        the properties of my entity bean class?

2) Again... I want to allow some method calls only to the users which have
        the "employer" role, but they should also have a certain value on certain
        field of a column (editable=true), otherwise the operation should not be
        done... shall I do this only with bean managed persistance?

Thanks a lot, any suggestion is appreciated.

Andrea



Relevant Pages

  • just kidding with cmp...
    ... I'm using j2ee sdk 1.4, ... pointbase database server. ... Thanks a lot, any suggestion is appreciated. ... Andrea ...
    (comp.lang.java.programmer)
  • just kidding with cmp...
    ... I'm using j2ee sdk 1.4, ... pointbase database server. ... Thanks a lot, any suggestion is appreciated. ... Andrea ...
    (comp.lang.java.developer)
  • Re: minimum of a function into two variables
    ... Andrea writes: ... I need some suggestion, ... it seems to me (using Maple) that ... I'm not convinced that f) increases as n -> infinity, but if it ...
    (sci.math)
  • Re: Firefox 1.0-2 crashes
    ... > Andrea Vettorello wrote: ... >> Have you tried what is suggested in the Debian Firefox documentation? ... I think you should follow Marc Wilson suggestion, ...
    (Debian-User)
  • Linked task between Project does show Text1
    ... Are your projects in project server 2003? ... Andrea ... the predecessor ... >Anyone with suggestion? ...
    (microsoft.public.project.pro_and_server)