[EJB 3.0] - Mapping-Problem with Primary-Key containing three Foreign-Ke
by ttrepper
Hi all,
I am sorry, but i cannot get it working. I have three tables with a PK beeing a single attribute. And then I have another table, with three attributes each referencing the PK of one table. And these three attributes are at the same time the PrimaryKey (PK)
SQL looks like this:
| CREATE TABLE ListedSections (
| SectionID SMALLINT NOT NULL,
| SectionName CHARACTER VARYING(50) NOT NULL,
| SectionDescription CHARACTER VARYING(150),
| DateAdded TIMESTAMP DEFAULT current_timestamp,
| ActiveUntil TIMESTAMP,
| CONSTRAINT PK_ListedSections PRIMARY KEY (SectionID)
| );
|
| CREATE TABLE ListedRights (
| RightID SMALLINT NOT NULL,
| RightName CHARACTER VARYING(50) NOT NULL,
| RightDescription CHARACTER VARYING(150),
| DateAdded TIMESTAMP DEFAULT current_timestamp,
| ActiveUntil TIMESTAMP,
| CONSTRAINT PK_ListedRights PRIMARY KEY (RightID)
| );
|
| CREATE TABLE ListedRoles (
| RoleID SMALLINT NOT NULL,
| RoleName CHARACTER VARYING(40) NOT NULL,
| RoleDescription CHARACTER VARYING(150),
| DateAdded TIMESTAMP DEFAULT current_timestamp,
| ActiveUntil TIMESTAMP,
| CONSTRAINT PK_ListedRoles PRIMARY KEY (RoleID)
| );
|
| CREATE TABLE RoleHasRights (
| RightID SMALLINT NOT NULL,
| RoleID SMALLINT NOT NULL,
| SectionID SMALLINT NOT NULL,
| CONSTRAINT PK_RoleHasRights PRIMARY KEY (RightID, RoleID, SectionID)
| );
|
| ALTER TABLE RoleHasRights ADD CONSTRAINT ListedRights_RoleHasRights
| FOREIGN KEY (RightID) REFERENCES ListedRights (RightID);
|
| ALTER TABLE RoleHasRights ADD CONSTRAINT ListedRoles_RoleHasRights
| FOREIGN KEY (RoleID) REFERENCES ListedRoles (RoleID);
|
| ALTER TABLE RoleHasRights ADD CONSTRAINT ListedSections_RoleHasRights
| FOREIGN KEY (SectionID) REFERENCES ListedSections (SectionID);
|
My Entities are looking like this:
| package myPackage;
|
| import java.io.Serializable;
| import java.sql.Timestamp;
| import java.util.Collection;
| import java.util.ArrayList;
|
| import javax.persistence.Entity;
| import javax.persistence.Id;
| import javax.persistence.JoinColumn;
| import javax.persistence.OneToMany;
| import javax.persistence.Table;
|
| @Entity
| @Table(name="listedroles", schema="public", catalog="postgres")
| public class Role implements Serializable {
| private static final long serialVersionUID = 1L;
| private int roleid;
| private String roleName;
| private String roleDescription;
| private Timestamp dateadded;
| private Timestamp activeuntil;
| private Collection<RoleHasRights> roleHasRights = new ArrayList<RoleHasRights>();
|
| //--------------------------------------------------------------------------
| @Id
| public int getRoleid() {
| return this.roleid;
| }
|
| //--------------------------------------------------------------------------
| public void setRoleid(int roleid) {
| this.roleid = roleid;
| }
|
| //--------------------------------------------------------------------------
| public String getRoleName() {
| return this.roleName;
| }
|
| //--------------------------------------------------------------------------
| public void setRoleName(String roleName) {
| this.roleName = roleName;
| }
|
| //--------------------------------------------------------------------------
| public String getRoleDescription() {
| return this.roleDescription;
| }
|
| //--------------------------------------------------------------------------
| public void setRoleDescription(String roleDescription) {
| this.roleDescription = roleDescription;
| }
|
| //--------------------------------------------------------------------------
| public Timestamp getDateadded() {
| return this.dateadded;
| }
|
| //--------------------------------------------------------------------------
| public void setDateadded(Timestamp dateadded) {
| this.dateadded = dateadded;
| }
|
| //--------------------------------------------------------------------------
| public Timestamp getActiveuntil() {
| return this.activeuntil;
| }
|
| //--------------------------------------------------------------------------
| public void setActiveuntil(Timestamp activeuntil) {
| this.activeuntil = activeuntil;
| }
|
| //--------------------------------------------------------------------------
| @OneToMany(mappedBy="roleHasRightsPK.roleid")
| @JoinColumn(name="roleHasRightsPK")
| public Collection<RoleHasRights> getRoleHasRights() {
| return this.roleHasRights;
| }
|
| //--------------------------------------------------------------------------
| public void setRoleHasRights(Collection<RoleHasRights> roleHasRights) {
| this.roleHasRights = roleHasRights;
| }
| }
|
Sections and Rights are nearly the same
And RoleHasRights:
| package com.auctonova.ejb.admin.persitence;
|
| import java.io.Serializable;
|
| import javax.persistence.Table;
| import javax.persistence.Entity;
| import javax.persistence.Embeddable;
| import javax.persistence.EmbeddedId;
| import javax.persistence.ManyToOne;
|
| @Entity
| @Table(name="rolehasrights", schema="public", catalog="postgres")
| public class RoleHasRights implements Serializable {
| private static final long serialVersionUID = 1L;
| private RoleHasRightsPK roleHasRightsPK;
|
| //--------------------------------------------------------------------------
| @EmbeddedId
| @ManyToOne
| public RoleHasRightsPK getRoleHasRightsPK() {
| return roleHasRightsPK;
| }
|
| //--------------------------------------------------------------------------
| public void setRoleHasRightsPK(RoleHasRightsPK roleHasRightsPK) {
| this.roleHasRightsPK = roleHasRightsPK;
| }
|
| //--------------------------------------------------------------------------
| public int getRoleid() {
| return this.roleHasRightsPK.roleid;
| }
|
| //--------------------------------------------------------------------------
| public void setRoleid(int roleid) {
| this.roleHasRightsPK.roleid = roleid;
| }
|
| //--------------------------------------------------------------------------
| public int getRightid() {
| return this.roleHasRightsPK.rightid;
| }
|
| //--------------------------------------------------------------------------
| public void setRightid(int rightid) {
| this.roleHasRightsPK.rightid = rightid;
| }
|
| //--------------------------------------------------------------------------
| public int getSectionid() {
| return this.roleHasRightsPK.sectionid;
| }
|
| //--------------------------------------------------------------------------
| public void setSectionid(int sectionid) {
| this.roleHasRightsPK.sectionid = sectionid;
| }
|
|
| //--------------------------------------------------------------------------
| @Embeddable
| public static class RoleHasRightsPK implements Serializable {
| private static final long serialVersionUID = 1L;
| private int roleid;
| private int rightid;
| private int sectionid;
|
| //----------------------------------------------------------------------
| public RoleHasRightsPK() {
| super();
| }
|
| //----------------------------------------------------------------------
| public int getRoleid() {
| return roleid;
| }
|
| //----------------------------------------------------------------------
| public void setRoleid(int roleid) {
| this.roleid = roleid;
| }
|
| //----------------------------------------------------------------------
| public int getRightid() {
| return rightid;
| }
|
| //----------------------------------------------------------------------
| public void setRightid(int rightid) {
| this.rightid = rightid;
| }
|
| //----------------------------------------------------------------------
| public int getSectionid() {
| return sectionid;
| }
|
| //----------------------------------------------------------------------
| public void setSectionid(int sectionid) {
| this.sectionid = sectionid;
| }
|
| //----------------------------------------------------------------------
| @Override
| public boolean equals(Object o) {
| if (o == this) {
| return true;
| }
| if ( ! (o instanceof RoleHasRightsPK)) {
| return false;
| }
| RoleHasRightsPK other = (RoleHasRightsPK) o;
| return (this.roleid == other.roleid)
| && (this.rightid == other.rightid)
| && (this.sectionid == other.sectionid);
| }
|
| //----------------------------------------------------------------------
| @Override
| public int hashCode() {
| return ((int) (this.roleid ^ (this.roleid >>> 32)))
| ^ ((int) (this.rightid ^ (this.rightid >>> 32)))
| ^ this.sectionid;
| }
| }
| }
|
Can anybody help my getting this working? Thank you very much and kind regards,
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087499#4087499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087499
18 years, 7 months
[JBoss Portal] - An error occured while rendering window 'myportal.home.HomeC
by suganthivelayutham
Hi,
Im getting the error in CMS portlet as,
"
An error occured while rendering window 'myportal.home.HomeCMSWindow'
java.lang.NullPointerException "
Can anyone guide me.
Here is my stack trace :
Console Log trace:
During Server Start:
15:15:04,435 ERROR [HibernatePersistenceManager] failed to read node state: deadbeef-face-babe-cafe-babecafebabe
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.parseInt(Integer.java:497)
at org.apache.jackrabbit.core.nodetype.NodeDefId.valueOf(NodeDefId.java:99)
at org.apache.jackrabbit.core.state.util.Serializer.deserialize(Serializer.java:133)
at org.jboss.portal.cms.hibernate.state.HibernatePersistenceManager.load(HibernatePersistenceManager.java:394)
at org.apache.jackrabbit.core.state.SharedItemStateManager.loadItemState(SharedItemStateManager.java:857)
at org.apache.jackrabbit.core.state.SharedItemStateManager.getNonVirtualItemState(SharedItemStateManager.java:784)
at org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:207)
at org.apache.jackrabbit.core.state.LocalItemStateManager.getNodeState(LocalItemStateManager.java:86)
at org.apache.jackrabbit.core.state.LocalItemStateManager.getItemState(LocalItemStateManager.java:141)
at org.apache.jackrabbit.core.version.VersionManagerImpl.(VersionManagerImpl.java:160)
at org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:291)
at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:234)
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:483)
at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:102)
at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:200)
at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:167)
at org.jboss.portal.cms.impl.jcr.ha.HAJCRCMS.startSingleton(HAJCRCMS.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy31.startSingleton(Unknown Source)
at org.jboss.portal.jems.ha.HASingletonInvoker.startSingleton(HASingletonInvoker.java:208)
at org.jboss.ha.singleton.HASingletonSupport.makeThisNodeMaster(HASingletonSupport.java:197)
at org.jboss.ha.singleton.HASingletonSupport.partitionTopologyChanged(HASingletonSupport.java:133)
at org.jboss.ha.jmx.HAServiceMBeanSupport$1.replicantsChanged(HAServiceMBeanSupport.java:247)
at org.jboss.ha.framework.server.DistributedReplicantManagerImpl.notifyKeyListeners(DistributedReplicantManagerImpl.java:845)
at org.jboss.ha.framework.server.DistributedReplicantManagerImpl.add(DistributedReplicantManagerImpl.java:408)
at org.jboss.ha.jmx.HAServiceMBeanSupport.registerDRMListener(HAServiceMBeanSupport.java:255)
at org.jboss.ha.jmx.HAServiceMBeanSupport.startService(HAServiceMBeanSupport.java:177)
at org.jboss.portal.jems.ha.HASingletonInvoker.startService(HASingletonInvoker.java:187)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
15:15:04,438 ERROR [STDERR] javax.jcr.RepositoryException: failed to read node state: deadbeef-face-babe-cafe-babecafebabe: failed to read node state: deadbeef-face-babe-cafe-babecafebabe
15:15:04,438 ERROR [STDERR] at org.apache.jackrabbit.core.version.VersionManagerImpl.(VersionManagerImpl.java:167)
15:15:04,439 ERROR [STDERR] at org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:291)
15:15:04,439 ERROR [STDERR] at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:234)
15:15:04,439 ERROR [STDERR] at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:483)
15:15:04,439 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:102)
15:15:04,439 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:200)
15:15:04,439 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:167)
15:15:04,439 ERROR [STDERR] at org.jboss.portal.cms.impl.jcr.ha.HAJCRCMS.startSingleton(HAJCRCMS.java:98)
15:15:04,439 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:15:04,439 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:15:04,439 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:15:04,439 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
15:15:04,439 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
15:15:04,439 ERROR [STDERR] at $Proxy31.startSingleton(Unknown Source)
During Portal Access:
15:16:40,047 ERROR [CMSPortlet] The portlet threw an exception
java.lang.RuntimeException: java.lang.NullPointerException
at org.jboss.portal.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:394)
at org.jboss.portal.cms.impl.jcr.ha.HAJCRCMS.execute(HAJCRCMS.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy158.execute(Unknown Source)
at com.reuters.aw.portal.core.portlet.cms.CMSPortlet.doView(CMSPortlet.java:195)
at com.reuters.aw.portal.core.portlet.cms.CMSPortlet.doDispatch(CMSPortlet.java:317)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)
at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:519)
at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:440)
at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:143)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087496#4087496
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087496
18 years, 7 months
[JBoss Seam] - Re: Get Request problems with Seam 2 CR1
by pete.muir@jboss.org
"smithbstl" wrote : I am having some trouble since converting from Seam 2 Beta to CR1 with a Get Request in combination with a pageflow
|
| When I use an s:link to navigate to a page
|
| Here is what was working
|
| <s:link
| | view="/servicerequest.xhtml"
| | value="#{req.serviceRequestNumber}">
| | <f:param name="serviceRequestId" value="#{req.serviceRequestId}" />
| | </s:link>
|
| <page view-id="/servicerequest.xhtml">
| | <param name="serviceRequestId" value="#{serviceRequestManager.serviceRequestId}"
| | converterId="javax.faces.Long"/>
| | <begin-conversation join="true"/>
| | <action execute="#{serviceRequestManager.loadServiceRequest(serviceRequestManager.serviceRequestId)}"/>
| | </page>
|
| When I click the s:link I get an error message passed into facesMessages "Illegal Navigation"
This looks like regression to me. What libraries are you using with your project? RichfFaces?
anonymous wrote : I changed the s:link to use a pageflow instead
You mean a logical outcome right?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087494#4087494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087494
18 years, 7 months
[EJB 3.0] - is this a bug in EJB?
by mnrz
hello
I have some entity in my application, when I declare a method starting with term "is" the database will be updated with a new field whereas I didn't declare that field as a database field
here is an example:
| import static org.jboss.seam.ScopeType.SESSION;
|
| import java.io.Serializable;
| import java.util.HashSet;
| import java.util.Set;
|
| import javax.persistence.CascadeType;
| import javax.persistence.Column;
| import javax.persistence.Entity;
| import javax.persistence.FetchType;
| import javax.persistence.GeneratedValue;
| import javax.persistence.Id;
| import javax.persistence.OneToMany;
| import javax.persistence.Table;
|
| import org.hibernate.validator.NotNull;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Scope;
|
| @Entity
| @Table(name ="group_permission")
| @Name("group")
| @Scope(SESSION)
| public class Group implements Serializable{
|
| private String name;
| private Long id;
| private Integer permissionGroup = new Integer(0);
| private Set<Permission> permissions =new HashSet<Permission>();
| private static final int Export_Permission = 8;
| private static final String All_Permission = "*";
|
| @OneToMany(mappedBy="group", fetch = FetchType.EAGER ,cascade=CascadeType.ALL )
| public Set<Permission> getPermissions() {
| return permissions;
| }
|
| public void setPermissions(Set<Permission> permissions) {
| this.permissions = permissions;
| }
| @Id @GeneratedValue
| @Column(name = "id")
| public Long getId() {
| return id;
| }
| public void setId(Long id) {
| this.id = id;
| }
|
| @NotNull
| @Column(name="name")
| public String getName() {
| return name;
| }
| public void setName(String name) {
| this.name = name;
| }
| public boolean equals(Object o) {
| if (o == null)
| return false;
|
| if (!(o instanceof Group))
| return false;
|
| Group that = (Group) o;
|
| return this.getName().equals(that.getName());
| }
|
| public int hashCode() {
|
| return this.getName().hashCode()+720;
|
| }
|
| @Column(name="permissionGroup")
| public Integer getPermissionGroup() {
| return permissionGroup;
| }
|
| public void setPermissionGroup(Integer permissionGroup) {
| this.permissionGroup = permissionGroup;
| }
| public void setPermission(boolean permission){
| permissionGroup=0;
| if(permission){
| permissionGroup=permissionGroup | Export_Permission;
| }
|
| }
| public void addPermission(ColumnHeader ch ,String categoryName){
|
| if(permissions==null){
| permissions=new HashSet<Permission>();
| }
| if(ch.isDisplayable() ||ch.isSearchable()){
| Permission permission=new Permission();
| permission.setGroup(this);
| permission.setCategory(categoryName);
| permission.displayablePermission(ch.isDisplayable());
| permission.searchablePermission(ch.isSearchable());
| permission.setFieldName(ch.getName());
| permissions.add(permission);
| }
| }
|
| public boolean hasExportPermission(){
| if((Export_Permission & Export_Permission) == Export_Permission)
| return true;
| else
| return false;
| }
|
| public void setExportPermission(boolean export){
| if(export) {
| permissionGroup = permissionGroup | Export_Permission;
| }else {
| permissionGroup = permissionGroup & ~Export_Permission;
| }
| }
|
| public boolean hasDisplayPermission(String categoryName, String fieldName) {
| for(Permission p: permissions) {
| if(p.getCategory().trim().equals(All_Permission)){
| return true;
| }
| if(p.getCategory().equals(categoryName) && p.getFieldName().equals(fieldName)) {
| return p.hasDisplayablePermission();
| }
| }
| return false;
| }
|
| public boolean hasSearchPermission(String categoryName, String fieldName) {
| for(Permission p: permissions) {
| if(p.getCategory().equals(All_Permission)){
| return true;
| }
| if(p.getCategory().equals(categoryName) && p.getFieldName().equals(fieldName)) {
| return p.hasSearchablePermission();
| }
| }
| return false;
| }
|
| }
|
|
as you can see in above code represented in blue color, I have some utility method in my entity, if I rename the method hasExportPermission() to isExportPermission() the EJB will create a field in corresponding table with name exportPermission and because it returns boolean the type of the field will be tinyint(1) (using mySql)
I expect since I didn't declare it by annotations it shouldn't consider it as a table field, but it does!!!!
I want to know whether this is a bug or I made a mistake somewhere
it is remarkable to say that I am using JBoss Seam framework, but I don't think this is its fault.
thank you very much
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087492#4087492
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087492
18 years, 7 months