the hibernate + JPA?
                  
                  
                  
                  
                  
                  I have several product entities (different tables) which can be bought as retail or wholesale.
                  
                  
                  The retail and wholesale entities have a corresponding table too.
                  
                  
                  
                  
                  
                  Some of these products have a oneToMany relation with the "Retail" and "WholeSale" tables,
                  
                  
                  While some other products have a OneToOne relation with the "Retail" and "WholeSale" tables.
                  
                  
                
No answer?
Didn't get the question. And didn't get the relationships. But anyway I can give you a very nice advice: draw ERD and everything should become clear. It doesn't look like there's something complex or extraordinary
Обсуждают сегодня