SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-559
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Shay Banon
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

Support new @SearchableCascade and cascade mappings

Created: 29/Feb/08 08:25 AM   Updated: 11/Mar/08 01:05 PM
Component/s: Compass::Core
Affects Version/s: None
Fix Version/s: 2.0.0 M3


 Description  « Hide
Matthew, are you still around? Does this feature sounds right to you?:

Have an annotation / mapping that will be called @SearchableCascade. This will allow to cascade operation performed on object (even if they are not root searchables) into its properties. For example:

@Searchable(root=false)
class A { @SearchableCascde B b; }

@Searchable
class B { @SearchableId int id; @SearchableProperty String text; }

In this case, Compass will allow for the following operation to be performed:

A a = ...
session.save(a); // can be delete and create as well

Which will result in cascading B. Naturally, this annotation will be allowed to be used with Set/List and array as return values.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.