on 03-13-2010 5:46 PM
Hi
Im not able to make self refrence work in JPA running on SAP NW 7.1. I need to do something like this:
I have an emloyee entitiy Employee which has 3 fileds EMP_ID, EMP_NAMe and EMP_MGR_ID. I need to deifne a Many to One realtionship on the EMP_TBL some thing like this
@ManyToOne
@JoinColumn(name="EMP_MGR_ID", referencedColumnName="EMP_ID")
Employee mgr;
I dont know wether this is supported by NW 7.1 implementaion for JPA, imho it doesnt because as soon i remove this realtionship , my app works.
Any ideas if someone knows how to make thiswork ?
thanks in advance for your time and help
br
bhaskar
Hi Bhaskar,
this should work.
Which issue are you observing?
-Adrian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.