Added writing capabilities to ObjectProcessor, completed db integration
At this moment the client is not able to receive to objects sent consecutively. This will be worked on in a future commit and should be fixed before merging this branch into develop.
This commit is contained in:
		
							
								
								
									
										29
									
								
								src/main/resources/META-INF/persistence.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								src/main/resources/META-INF/persistence.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
 | 
			
		||||
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
	xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
 | 
			
		||||
             http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
 | 
			
		||||
	version="2.1">
 | 
			
		||||
 | 
			
		||||
	<persistence-unit name="envoy"
 | 
			
		||||
		transaction-type="RESOURCE_LOCAL">
 | 
			
		||||
 | 
			
		||||
		<properties>
 | 
			
		||||
			<property name="javax.persistence.jdbc.driver"
 | 
			
		||||
				value="org.postgresql.Driver" /> <!-- DB Driver -->
 | 
			
		||||
			<property name="javax.persistence.jdbc.url"
 | 
			
		||||
				value="jdbc:postgresql://localhost/envoy" /> <!-- BD Mane -->
 | 
			
		||||
			<property name="javax.persistence.jdbc.user" value="envoy" /> <!-- DB User -->
 | 
			
		||||
			<property name="javax.persistence.jdbc.password"
 | 
			
		||||
				value="envoy" /> <!-- DB Password -->
 | 
			
		||||
 | 
			
		||||
			<property name="hibernate.dialect"
 | 
			
		||||
				value="org.hibernate.dialect.PostgreSQL95Dialect" /> <!-- DB Dialect -->
 | 
			
		||||
			<property name="hibernate.hbm2ddl.auto" value="update" /> <!-- create / create-drop / update -->
 | 
			
		||||
 | 
			
		||||
			<property name="hibernate.show_sql" value="true" /> <!-- Show SQL in console -->
 | 
			
		||||
			<property name="hibernate.format_sql" value="true" /> <!-- Show SQL formatted -->
 | 
			
		||||
		</properties>
 | 
			
		||||
 | 
			
		||||
	</persistence-unit>
 | 
			
		||||
 | 
			
		||||
</persistence>
 | 
			
		||||
		Reference in New Issue
	
	Block a user