cancel
Showing results for 
Search instead for 
Did you mean: 

JPA self refrencing

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

adrian_goerler
Active Participant
0 Kudos

Hi Bhaskar,

this should work.

Which issue are you observing?

-Adrian