Created
June 27, 2015 10:03
-
-
Save chingovan/73ed0b321b1e4b2fdade to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd"> | |
<service-builder | |
package-path="com.blogspot.chingovan.tutorial.database"> | |
<author>chinv</author> | |
<namespace>database</namespace> | |
<entity name="Foo" local-service="true" remote-service="true"> | |
<!-- PK fields --> | |
<column name="fooId" type="long" primary="true" /> | |
<!-- Group instance --> | |
<column name="groupId" type="long" /> | |
<!-- Audit fields --> | |
<column name="companyId" type="long" /> | |
<column name="userId" type="long" /> | |
<column name="userName" type="String" /> | |
<column name="createDate" type="Date" /> | |
<column name="modifiedDate" type="Date" /> | |
<!-- Other fields --> | |
<column name="field1" type="String" /> | |
<column name="field2" type="boolean" /> | |
<column name="field3" type="int" /> | |
<column name="field4" type="Date" /> | |
<column name="field5" type="String" /> | |
<!-- Order --> | |
<order by="asc"> | |
<order-column name="field1" /> | |
</order> | |
<!-- Finder methods --> | |
<finder name="Field2" return-type="Collection"> | |
<finder-column name="field2" /> | |
</finder> | |
</entity> | |
</service-builder> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment