Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Specific entity for insert and get object

 
Ritesh raushan
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we have created entity that contains five ManyToOne relationship with other field and we are getting all five ManyToOne mapping field ID from UI. Issue is that for insert object we have to make all 'ManyToOne mapping field' in persistent context for same we have to hit DB for five times(five query for get),So for insert one object we have to hit DB six times(five for ManyToOne and one for normal insert).
So,can we create other entity that would contain hardcoded join column name(join column ID is coming from UI) instead of refrence ManyToOne object, only for insert object.It will contain only one query to save object.
Please help me and sorry for english.

Advance Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic