Either Insert or Update the bean depending on its state. If there is no current transaction one will be created and committed for you automatically. Save can cascade along relationships. For this to happen you need to specify a cascade of CascadeType.ALL or CascadeType.PERSIST on the OneToMa
(Object bean)
| 299 | * will be set against each order detail when it is saved. |
| 300 | */ |
| 301 | public static void save(Object bean) throws OptimisticLockException { |
| 302 | getDefault().save(bean); |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * Insert the bean. This is useful when you set the Id property on a bean and |