Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-904
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Reporter: Laborie
Votes: 0
Watchers: 0

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

@SearchableParent doesn't seems to work on collections

Created: 29/Oct/09 05:33 AM   Updated: 29/Oct/09 05:33 AM
Component/s: None
Affects Version/s: 2.2.0 GA
Fix Version/s: None

 Description  « Hide
I have the following:

Class A

@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "institution_collection_numerisee", joinColumns = @JoinColumn(name = "id_collection_numerisee", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "id_institution", referencedColumnName = "id"))
@SearchableComponent(prefix = CollectionSearchFields.INSTITUTION_PREFIX, cascade = {Cascade.SAVE,Cascade.CREATE})
public Set<Institution> getListInstitutions() { return listInstitutions; }

Class B

@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.PERSIST)
@JoinTable(name = "projet_collection_numerisee", joinColumns = @JoinColumn(name = "id_projet", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "id_collection_numerisee", referencedColumnName = "id"))
@SearchableParent(cascade = {Cascade.CREATE, Cascade.SAVE})
public Set<CollectionNumerisee> getListCollectionNumerisees() { return listCollectionNumerisees; }

When I'm doing a search it says:

ClassCastException cannot cast CollectionNumerisee to Set

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