我想在liferay中创建一个正在监听URL的servlet
http://localhost:8080/my-servlet
Run Code Online (Sandbox Code Playgroud)
我试图将它添加到portlet但我有URL
http://localhost:8080/my-portlet/my-servlet
Run Code Online (Sandbox Code Playgroud)
我试图将我的servlet描述添加到ext-web的web.xml中,但没有运气.有没有办法添加这样的servlet?
我想创建一对多的关系,我使用了以下service.xml:
<entity name="Student" local-service="true" remote-service="true" cache-enabled="false">
<column name="studentId" type="long" primary="true" />
<column name="courses" type="Collection" entity="Course"/>
</entity>
<entity name="Course" local-service="true" remote-service="true" cache-enabled="false">
<column name="courseId" type="long" primary="true" />
<column name="studentId" type="long"/>
</entity>
Run Code Online (Sandbox Code Playgroud)
我的问题是没有为collections方法创建任何东西.没有例外,没有.生成类并且只有简单的getter方法,但没有getCourse().
我做错了什么?