database - Diamond model and JPA : How can I store or read it? -


i know if it's possible use cascade mode jpa store database diamond model. diamond model :

  /    \ 

left right

\    /   down 
  • up contains 2 lists : 1 of right et 1 of left
  • right , left contain list of down.

for database, have : - uptable : id, name; - righttable : id, name, id_up; - lefttable : id, name, id_up; - downtable : id, name, id_left, id_right;

i thought @onetomany(mappedby = "xxxx", cascade=cascadetype.all) , @manytoone have worked no... i've dreamed.

so, have solution?

thanks.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -