<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.2" 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_2.xsd">
	<persistence-unit name="sklep" transaction-type="RESOURCE_LOCAL">
		<class>sklep.model.Customer</class>
		<class>sklep.model.OrderProduct</class>
		<class>sklep.model.OrderProductPK</class>
		<class>sklep.model.Order</class>
		<class>sklep.model.Product</class>
		<properties>
			<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/sklep"/>
			<property name="javax.persistence.jdbc.user" value="kurs"/>
			<property name="javax.persistence.jdbc.password" value="abc123"/>
			<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver"/>
			<property name="hibernate.show_sql" value="true"/>
		</properties>
	</persistence-unit>
	
	<persistence-unit name="hr" transaction-type="RESOURCE_LOCAL">
		<class>hr.model.Country</class>
		<class>hr.model.Department</class>
		<class>hr.model.Employee</class>
		<class>hr.model.Job</class>
		<class>hr.model.Location</class>
		<class>hr.model.Region</class>
		<properties>
			<property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/hr"/>
			<property name="javax.persistence.jdbc.user" value="kurs"/>
			<property name="javax.persistence.jdbc.password" value="abc123"/>
			<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver"/>
			<property name="hibernate.show_sql" value="true"/>
		</properties>
	</persistence-unit>
</persistence>
