[
https://issues.apache.org/jira/browse/TOMEE-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16976053#comment-16976053
]
Shanmukha commented on TOMEE-2741:
----------------------------------
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.domain.AbstractEntity;
@Entity
@Table(name = "user_profile")
public class UserProfile extends AbstractEntity<Long> implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "user_profile_id", nullable = false)
private Long userProfileId;
@Column(name = "user_principal")
private String userPrincipal;
@Column(name = "language")
private String language;
public UserProfile() {
// Default constructor for the Entity
}
/**
* Constructor for userprofile entity.
*
* @param userProfileId user profile id.
* @param userPrincipal user principal.
* @param language language.
*/
public UserProfile(Long userProfileId, String userPrincipal, String language)
{
this.userProfileId = userProfileId;
this.userPrincipal = userPrincipal;
this.language = language;
}
@Override
public Long getId() {
return userProfileId;
}
public Long getUserProfileId() {
return userProfileId;
}
public void setUserProfileId(Long userProfileId) {
this.userProfileId = userProfileId;
}
public String getUserPrincipal() {
return userPrincipal;
}
public void setUserPrincipal(String userPrincipal) {
this.userPrincipal = userPrincipal;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
}
> java.lang.IllegalStateException: A class which implements
> java.lang.reflect.InvocationHandler and is annotated with
> @org.apache.deltaspike.data.api.Repository is needed as a handler
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TOMEE-2741
> URL: https://issues.apache.org/jira/browse/TOMEE-2741
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Build, TomEE Maven Plugin
> Reporter: Shanmukha
> Priority: Blocker
> Attachments: Tomee_Issue.zip
>
>
> Nov 17, 2019 9:15:09 AM
> org.apache.webbeans.portable.events.discovery.ErrorStack logErrors
> SEVERE: A class which implements java.lang.reflect.InvocationHandler and is
> annotated with @org.apache.deltaspike.data.api.Repository is needed as a
> handler for profile.repository.UserProfileRepository. See the documentation
> about @org.apache.deltaspike.partialbean.api.PartialBeanBinding.
> java.lang.IllegalStateException: A class which implements
> java.lang.reflect.InvocationHandler and is annotated with
> @org.apache.deltaspike.data.api.Repository is needed as a handler for
> profile.repository.UserProfileRepository. See the documentation about
> @org.apache.deltaspike.partialbean.api.PartialBeanBinding.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)