Skip to content

Commit

Permalink
Merge pull request apereo#3 from frett/deprecationCleanup
Browse files Browse the repository at this point in the history
switch to using ElementCollection which was added with JPA 2.0
  • Loading branch information
battags committed Oct 1, 2011
2 parents 091a250 + f822945 commit 07df052
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.util.List;

import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
Expand All @@ -20,7 +21,6 @@

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hibernate.annotations.CollectionOfElements;
import org.hibernate.annotations.IndexColumn;
import org.jasig.cas.authentication.principal.Service;
import org.springframework.util.AntPathMatcher;
Expand Down Expand Up @@ -48,7 +48,7 @@ public class RegisteredServiceImpl
private long id = -1;


@CollectionOfElements(targetElement = String.class, fetch = FetchType.EAGER)
@ElementCollection(targetClass = String.class, fetch = FetchType.EAGER)
@JoinTable(name = "rs_attributes")
@Column(name = "a_name", nullable = false)
@IndexColumn(name = "a_id")
Expand Down

0 comments on commit 07df052

Please sign in to comment.