Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Business logic validation with BVF? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Business logic validation with BVF?

    I am just introduced to the Spring Module - BVF. It works very with simply validation rules. After reading the document, I can't figure out how it can be used for some quite base business logic validation. Say, I have a property called maxBid. The minimum of this field is depended on the type which is another property of the bean. I can't simply use the followings:

    	public enum TYPE {
    		CPM, CPC
    	@Min(0.01) // for CPC
    	protected float maxBid;
    	protected TYPE type;
    BTW, some text in the document is too small.