Last active
August 29, 2015 14:23
-
-
Save chingovan/43e0aba7a4775ce25a1f to your computer and use it in GitHub Desktop.
This file contains hidden or 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="Student" local-service="true" remote-service="true" table="Student"> | |
| <!-- PK fields --> | |
| <column name="studentId" type="long" primary="true" db-name="StudentId"/> | |
| <!-- Other fields --> | |
| <column name="code" type="String" db-name="Code"/> | |
| <column name="fullName" type="String" db-name="FullName"/> | |
| <column name="birthday" type="Date" db-name="Birthday"/> | |
| <column name="gender" type="boolean" db-name="Gender"/> | |
| <column name="address" type="String" db-name="Address"/> | |
| <!-- Order --> | |
| <order by="asc"> | |
| <order-column name="fullName" /> | |
| </order> | |
| <!-- Finder methods --> | |
| </entity> | |
| </service-builder> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment