<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:config="http://www.anyframejava.org/schema/service"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
	http://www.anyframejava.org/schema/service http://www.anyframejava.org/schema/service/anyframe-core-service-2.0.xsd">
	<bean name="UUIdGenerationService" class="anyframe.core.idgen.impl.UUIdGenerationService">
		<config:configuration>
	      <address>00:00:F0:79:19:5B</address>			
		</config:configuration>					
	</bean>	
	<bean name="SequenceIdGenerationService" class="anyframe.core.idgen.impl.SequenceIdGenerationService" destroy-method="destroy">
		<property name="dataSource">
			<ref bean="common_datasource"/>
		</property>
		<config:configuration  big-decimals="true">	
			<query>SELECT NEXT VALUE FOR idsequence FROM DUAL</query>		
		</config:configuration>
	</bean>	
	<bean name="TableIdGenerationService" class="anyframe.core.idgen.impl.TableIdGenerationService" destroy-method="destroy">
		<property name="dataSource" ref="common_datasource"/>
		<property name="strategy" ref="mixPrefix"/>
		<config:configuration  block-size="1" table="ids" key-table="test"/>				
	</bean>	
	
	<bean name="mixPrefix" class="anyframe.core.idgen.impl.strategy.MixPrefix">
		<property name="prefix" value="TEST-"/>
		<property name="cipers" value="5"/>
		<property name="fillChar" value="*"/>
	</bean>
		
</beans>	
