How to configure Inner Class as an Entity in Mapping File [message #1229491] |
Thu, 09 January 2014 14:58 |
Sendhil Kumar Messages: 7 Registered: January 2014 |
Junior Member |
|
|
Hi All,
Am new to eclispe link.
How I can configure inner class of a class as entity in eclipse link mapping file,
For example, as shown below, if I have to configure UserVo.AppUser, where AppUser is the inner class,
public class UserVo extends AbstractIdentifiableValueObject {
private AppUser appUser;
public UserVo(String userId, AppUser appUser) {
super(safeDeriveIdentity(userId, appUser, globalUser));
this.appUser = appUser;
}
public AppUser getAppUser() {
return(appUser);
}
public static class AppUser extends AbstractIdentifiableValueObject {
private UserGroupVo.Identity group;
private UserGroupVo.Identity selectedGroup;
...................
}
}
Can I declare it as shown below?
<description>AppUser</description>
<entity name="ApplicationUser" class="com.csfb.csar.exman.shared.work.UserVo.AppUser" >
<table name="VEM_USER"></table>
<attributes>
<id name="dbId" type="java.lang.Long" >
<column name = "USER_ID"/>
</id>
............................
|
|
|
|
Powered by
FUDForum. Page generated in 0.04211 seconds