Probably a Silly Question(tm) but:
Is it possible to do a one-to-one mapping which includes an "outside" attribute?
Lets say I have a "Product" class that is essentially
Code:
public class Product {
public Integer id;
public String name;
public ProductPrice productPrice;
...
}
and a customer-specific product price class:
Code:
public class ProductPrice {
public Product product;
public Customer customer;
public float price;
...
Is there any way of doing a "from Product" for a specific customer so that the lazy loading of ProductPrice would hit that specific customer?