showing me some details such as error messages may help
i dont get what the problem exactly is which u faced
make sure ur tables were seting up properly, and ur jsp tags were right
--
View this message in context:
http://www.nabble.com/one-to-many-problem-on-appfuse2.0-m4-tf3731354s2369.html#a1
GBSGBSGBS wrote:
>
> i'v solved this problem yet...
> i mistake a struts tag in my jsp pages(tag)
> thank u Eric
>
i hava the same problem..
can you tell me detailed how does you solved that??
--
View this message in context:
http://www.nabble.com/one-to-many-problem-on-appfuse2.0-m
Sorry I couldn't help much, but glad you found it.
GBSGBSGBS wrote:
i'v solved this problem yet...
i mistake a struts tag in my jsp pages(tag)
thank u Eric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
i'v solved this problem yet...
i mistake a struts tag in my jsp pages(tag)
thank u Eric
--
View this message in context:
http://www.nabble.com/one-to-many-problem-on-appfuse2.0-m4-tf3731354s2369.html#a10451702
Sent from the AppFuse - User mailing list archive at Nabble.com.
anyway, thank u Eric Fitzsimmons
well, i think u misunderstand my point
let me put it this way
assum that there is a "form" (called maintain)which has a "applyPerson" and
a "confirmPerson"
then the "form"(called maintain) bean is:
-
You will most likely want to allow children the possibility of having
children and you would want to extend Person, but if you do that then
you can't map Person directly to the database because it would have to
be @MappedSuperclass
You really want to try to make your code a bit easier to read an
@Entity
class Person {
Private Long id;
Private Set childSMother = new HashSet<>(Child),
Set childSFother = new HashSet<>(Child);
/**
getter/setter of id
*/
@OneToMany(mappedBy="mother")
public Set getChildSMother(){
return childSMother
Personally I would simplify it. I'm not exactly sure how you have
things set up. So lets just cut to the chase... please put in the full
pojos involved. Just copy the the classes with getters/setters and
associated elements please.
GBSGBSGBS wrote:
thank you for your reply
Person bean:(O
thank you for your reply
Person bean:(OK,just an example, person is without gender)
/**
properties
*/
@OneToMany(mappedBy="mother")
Set childSMother
@OneToMany(mappedBy="father")
Set childSFather
Child bean:
/**
properties
*/
@ManyToOne
@JoinColumn(name="MOTHER_ID", nullable=false)
Perso
Some more information would be helpful. I am assuming you have person
pojo and are having a List for it's children? if that is the
case it will be a "@OneToMany List getChildren()" relationship.
which will make up another table called Person_children storing by
default the ids of the parent a
i'v made two entity beans
the first one is called "person", which stores a set of "child"s
then, obviously, "child" has a mother(person) and a father(person) property
so, there is a one to many relationship between these two beans
i use the pre-existing classes in appfuse(GenericDaoHibernate and
11 matches
Mail list logo