我有类似的东西:
@ManyToOne(fetch = FetchType.LAZY)
@Fetch(value = FetchMode.JOIN)
@JoinColumn(name = "user_id", insertable = false, updatable = false)
@LazyCollection(LazyCollectionOption.FALSE)
private UserPreview user;
deleted object would be re-saved by cascade (remove deleted object from associations): [server.model.dao.entities.UserGroupMembership#22]; nested exception is
org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations):
具有动态生成的路由:
<Router>
<ModuleRoute path="/module/:path" />
<NotFoundRoute default />
</Router>
这适用于在ModuleRoute
之后具有单个目录的URL,例如 <Router>
{modules.map(module => module.routes.map((route) => {
const Component = route.component;
return (
<Component path={`/module/${module.directory}/${route.path}`} />
);
}))}
</Router>
,但不适用于多个嵌套目录。
如何使/module
与所有以/module/feature
开头的路径匹配?