This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 226673 - hibernate pojo one-toMany
Summary: hibernate pojo one-toMany
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-25 17:31 UTC by geekaia
Modified: 2014-07-17 12:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description geekaia 2013-02-25 17:31:51 UTC
I have my database with some relationship, so when I request to Hibernate to generate classes and  HBM.xml files, almost all things are generated well, but not for One-to-Many relationship, so I need to edit the files hbm.xml and add cascade='delete' to all sets. This can be generated automatically.
Comment 1 Sergey Petrov 2013-02-27 12:30:43 UTC
if it's not required it may not be an issue but it may be an option in hibernate wizards if this option is allowed by hibernate tools. as nb use hibernate tools for pojos/config generation.
Comment 2 Sergey Petrov 2014-07-17 12:09:14 UTC
Sorry, I can't find this option in hibernate tools, and we are using hibernate tools here.