[ 
http://thecla.homeftp.net:8380/jira/browse/SPRING-38?page=comments#action_10980 
]
     
Stefan Reichert commented on SPRING-38:
---------------------------------------

Peter and I we thought about this feature and we figured out a suggestion for a 
solution:

The SearchCriteria is modeled as VO and implements an Interface providing a 
method for retrieving the single criterions. The retrieval is generated as 
well. A criterion contains information of parameterName, parameterValue, 
logical operator, etc. which can be modelled as tagged-value for each attribute 
in the diagram. The Criteria is linked to a spring-entity which indicates the 
type of result. The relation between the criteria and the entity results in a 
(finder-)method in the DAO. The finder-method retrieves the criterions from the 
SearchCriteria and dynamically builds the query using Hibernate's Criteria API. 
The only thing left would be entering the attributes on the client.

As this is quite important for our project, Peter and I would like to offer our 
help and supply a possible implementation if that's OK for you? 

> Modelling a search with multiple attributes
> -------------------------------------------
>
>          Key: SPRING-38
>          URL: http://thecla.homeftp.net:8380/jira/browse/SPRING-38
>      Project: Spring Cartridge
>         Type: New Feature
>  Environment: UML Tool: Together Designer
>     Reporter: Stefan Reichert
>     Assignee: Chad Brandon
>     Priority: Minor

>
>
> Introduce a generic search with multiple attributes for a spring-entity. The 
> criteria should be passed as a ValueObject. The handling of the query 
> (citeria interpretation, query building, etc.) should be generated by the 
> (spring or hibernate) cartrige.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://thecla.homeftp.net:8380/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to