Questions tagged [bidirectional-relation]

98 questions
1
vote
1 answer

Querying single relationship from a bidirectional relationship in Neo4j

Is it possible to show only one direction relationship from a bidirectional relationship? (n)-[:EMAIL_LINK]->(m) (n)<-[:EMAIL_LINK]-(m)
Daryl
  • 35
  • 3
1
vote
0 answers

Bidirectional references in MongoEngine

PHP Doctrine has support for bi-directional references. I wonder if MongoEngine has something similar to this, so that when, for example, I add a post of a user, I don't need to manually keep both sides synced. I could also only store the reference…
1
vote
0 answers

How to exclude bidirectionnal relations using NativeQuery and ResultSetMapping?

I have 2 entities, User and Customer, with a OneToOne bi-directionnal relation. User entity also have a bi-directionnal relation with Invoice entity : class User implements UserInterface { /** *…
1
vote
1 answer

How to properly have an automatically updating one-to-many bi-directional relationship in C#

In an example game engine server, the game world could be represented by a World object. The game might have multiple game worlds and a player who is in a world only needs to receive position data of units in that world. class World { public…
Layl Conway
  • 385
  • 9
  • 17
1
vote
3 answers

Hibernate / "absolutely necessary with bi-directional links"?

Here's an excerpt of the official Hibernate tutorial First, keep in mind that Hibernate does not affect normal Java semantics. How did we create a link between a Person and an Event in the unidirectional example? You add an instance of Event to…
Mik378
  • 21,881
  • 15
  • 82
  • 180
1
vote
1 answer

Bi-directional association between Footballer Mapper and Bowler Mapper

This question is about a specific UML diagram in the book called Patterns Of Enterprise Application Architecture, by Martin Fowler. Why is there a 'bi-directional association' between Footballer Mapper and Bowler Mapper in the 'Inheritance Mapper'…
JW.
  • 4,821
  • 5
  • 43
  • 60
1
vote
1 answer

Remove object with relationships - Hibernate

I'm having some problems with Hibernate relationships and Save-Update-Delete. Lets say I have the following: public class Subject{ @Id private int ID; private String Name; //getters and setters } public class Grade{ …
1
vote
2 answers

nhibernate mapping many-to-many: why was the whole bag collections deleted and reinserted?

Nhibernate users, professionals, gurus and developers are expected. Please help !!! I want to realise a n:m relation between two classes. A student attends in more courses and a course consists of more students as members. I do a bidirectional…
1
vote
1 answer

Bi-directional mapping in ZODB in Python

I know that in ZODB you can use a BTree to store large amounts of data and have lookups based on a key with total ordering be logarithmic to the size of the tree. The problem is, I have some Persistent object Foo, and some other Persistent object…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
1
vote
1 answer

Retrieve records in mongoDB using bidirectional query

I have two collections - Tickets and Users. Where a user can have one to many tickets. The ticket collection is defined as follows Ticket = {_id, ownerId, profile: {name}} The ownerId is used to find all tickets that belong to a specific person. I…
Warz
  • 7,386
  • 14
  • 68
  • 120
1
vote
1 answer

Fluent Nhibernate: how to map bidirectional relationship

I'm trying to map the following but not sure if it is at all possible with the current nHibernate/fluent nHibernate so any suggestions would be greatly appreciated. Basically I've got the following 2 classes public class Venue { public virtual…
0
votes
2 answers

TYPO3 Bidirectional relation with same model

I have TYPO3 11.5. I have a custom model "Atto". In my TCA configuration i used: 'atto' => [ 'exclude' => true, 'label' => 'Atti', 'config' => [ 'type' => 'group', …
MarioProject
  • 417
  • 4
  • 25
0
votes
1 answer

Bidirectional relationship with superclass entity property in JPA

I'm tying to implement some tree-like structure with JPA. I have a "folder" entity and a "test" entity. Folder can contain both folders and tests. Test doesnt contains anything. Both test and folder have a Node superclass, looks like…
0
votes
2 answers

Problem to implement bidirectional relationship in hibernate with my spring boot api

I want to create a spring boot rest controller with this specification : Customers of an electricity and gas supply company can choose to receive their monthly bills either by email or by regular mail, neither or both. My goal is to create java…
ln3106
  • 113
  • 10
0
votes
2 answers

Fluent NHibernate insert parent id problem with HasMany relationship

I can't understand why NHibernate is inserting a child entity without the foreign key of the parent. The only way I found to solve this is with a Bidirectional relationship, is there another way? Here are the classes: public class Parent { …
user948104