• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Validating CMP Entity Bean data

Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here goes:
Currently have a j2ee web app - client side input is validated before an entity bean can be poulated to ensure it is of the correct type, correct length etc. While this is all well and good - I still feel that the biz objects themselves should either be able to validate themselves (the data for this field is too long, I cannot update rather than have it throw a sql exception which causes other issues), or have some logic on the session beans that are doing the updating.
I could always put something in the session bean which would validate every field, but this seems, well, bad.
Is there any way to pull this info from the data source? ie: database column size, type, etc...
Are there any lightweight validation frameworks out there for the business side - like I said, the client tier/view is covered. Thanks.
    Bookmark Topic Watch Topic
  • New Topic