types of relationship in java - Search