Skip to content

Instantly share code, notes, and snippets.

@chingovan
Created July 9, 2015 19:00
Show Gist options
  • Save chingovan/a4db9495b0afd04fb93e to your computer and use it in GitHub Desktop.
Save chingovan/a4db9495b0afd04fb93e to your computer and use it in GitHub Desktop.
<?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.combine">
<author>chinv</author>
<namespace>combine</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