Skip to main content

Posts

Showing posts from December, 2017

liferay service connects to external oracle database

1- configure service.xml 2- create ext-spring.xml 3-create the oracle  table and sequesnce 4- build the service 1-service.xml  note that we add <?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.dash.hr.forms"> <author>melsonbati</author> <namespace>SAMPLE</namespace> <entity name="Coupon"  table="HR_COUPON" local-service="true" remote-service="true" data-source="tcsDS" session-factory="testSessionFactory" tx-manager="testTransactionManager"> <!-- PK fields --> <column name="couponId" type="long" primary="true"  id-type="sequence" id-param="id_sequence_cp"  /> <