You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I've a Client and Seller entities, and both have an Address, which is unique for entity, currently the way to do this would be to have each of the fields of the Address on the entities like
public class Client {
private String name;
private String st1;
private String st2;
}
public class Seller {
private String name;
private String st1;
private String st2;
}
It would be really, really good to be able to do something like:
public class Client {
private String name;
private Complex<Address> address;
}
public class Seller {
private String name;
private Complex<Address> address;
}
public class Address {
private String st1;
private String st2;
}
The text was updated successfully, but these errors were encountered:
@Kcorab yeah that's one solution, but Address is considered a Weak entity, meaning that it doesn't have any sense to have an Address without a Seller, and a Seller can only have one Address, so the right way to map that relationship would be with address fields on the Seller and Client table
Let's say I've a Client and Seller entities, and both have an Address, which is unique for entity, currently the way to do this would be to have each of the fields of the Address on the entities like
It would be really, really good to be able to do something like:
The text was updated successfully, but these errors were encountered: