java - Creating complex object in database with Hibernate -


i want solve problem adding records database. have 2 entities, let's car , status. when create car record want connected status table. want have status_id in car record. in status there 2 records. 1: available , 2:broken. best way solve this?

i can't add code now, link later.

thanks help.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -