w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Modelling a situation in spring mvc with jpa and hibernate

@OneToOne doesn't imply that the bidder exists. It will be null until the end of auction, at which time you will set it to whoever won the auction. BTW, I assume one bidder can bid for many items, in which case it is @ManyToOne on the item side, and @OneToMany on bidder side.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.