Jboss seam 1.0.1 GA
JBoss 4.0.4GA (ejb3 config) 
EJB-3.0_RC8-FD

Hello,
my java model has 6 entity beans which inherit from a parent class where I put 
all the pojo stuff. I followed the single table strategy with discriminator.
So the relational model results in a single table that contains data from all 
of 6 entities.
The problem I found relates to the translation to javascript objects that Seam 
produces automagically. In fact in the interface javascript there is no 
evidence at all of the pojo stuff that belongs to the parent class. There can 
be eventually only specific properties and methods that belong only to the 
child class.
It seems that the Seam producer inspects only one class at time, not navigating 
the parent object.
As a workaround writing manually the missing objects in the interface 
javascript makes all the things go well. 

My parent class (fragment) is

@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "tipoFlag", discriminatorType = 
DiscriminatorType.STRING)
@Table(name = "bo_indirizzi")
@Name("cbi.model.bo.BoIndirizzo")
public class BoIndirizzo implements Serializable {

...

}


One of my child classes (complete) is 

@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorValue(CostantiCbi.INDORDEBITORE)
@Name("cbi.model.bo.BoOrDebitore")
public class BoOrDebitore extends BoIndirizzo implements Serializable {
        private static final long serialVersionUID = 1L;        
        
}


Did anyone experienced that?
best regards
Filippo

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974158#3974158

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974158
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to