camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ranabroto <>
Subject Re: Insert reference ID of another table
Date Mon, 24 Jul 2017 16:47:02 GMT
I do not think it has got anything to do with camle, depends on what
framework you are using to persist data, for example if you are using
hibernate(with orm mapping) component of camel, may be you can do something
like below.
<hibernate-mapping default-cascade="save-update">
        <class name=""  table="person">
	        <id name="id" column="id" />
	        <property name="name">
	        	<column name="name"></column>
			<one-to-one name="customer" class=""
cascade="all" />
 		<class name="" table="customer">
 			<id name="id">
	            <column name="id" />
	            <generator class="foreign">
 			<one-to-one name="person" class=""
constrained="true" />
			<property name="somefield">
	    		<column name="somefield"></column>

Then from you camel context use like blow
Create the Person object here setting customer in it, then set that person
in camel message body, after that use below line
<to uri="" pattern="InOnly"/> 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message