What I have found in development is to put referential integrity and some
business logic in the database during development. That helps catch errors
in the program logic. Then, I usually take it out of the production system
to gain better performance.
Of course, you could leave it there for production. That is useful if you
have systems which might try to 'end run' the object design to work directly
with the db. Not that 'that' ever happens... =)
Jonathan Baker
Internet Applications Division
Sybase
Lee Turner wrote:
>
> Hi
>
> I have heard different people telling me different things on this issue so I
> thought I would ask you guys to see what you think. My question is
> regarding where to implement data integrity. I have been told by someone
> that the best way to approach this is to implement all this logic in the EJB
> object model and have the underlying database as just raw tables with no
> relationships between them. On the other hand, I have been told that it is
> better to implement it in both. I know the decision will differ depending
> on whether the underlying data is being accessed by anything other that an
> EJB application, but I was wondering what you guys thought about just purely
> EJB apps
>
> Cheers
> Lee
>
> _________________________________
>
> Lee Turner
> Systems Developer
> _________________________________
>
> Watt Gilchrist Ltd
> Ring Road, West Park
> Leeds, LS16 6RA
> Tel: 0113 288 3200
> Fax: 0113 275 1690
> http://www.wattgilchrist.co.uk
> _________________________________
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".