This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema", | |
"$id": "http://example.com/example.json", | |
"type": "object", | |
"title": "The root schema", | |
"description": "The root schema comprises the entire JSON document.", | |
"default": {}, | |
"examples": [ | |
{ | |
"id": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##############################################< USER >################################################# | |
- changeSet: | |
id: 07-07-20_00 | |
author: KiryhaPikoff | |
preConditions: | |
- onFail: MARK_RAN | |
- not: | |
tableExists: | |
tableName: user | |
changes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p:panelGrid columns="2" style="width:100%; align-items: stretch;" columnClasses="half-column"> | |
<p:dataScroller value="#{medicalServiceCreationBean.medicamentsInstock}" var="medicamentCount" | |
chunkSize="10" | |
style="width: 100%"> | |
<f:facet name="header"> | |
Выберите медикаменты: | |
</f:facet> | |
<h:panelGrid columns="2" style="width:100%;" columnClasses="detail,buttons"> | |
<p:outputPanel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.datasource.url=jdbc:postgresql://127.0.0.1:5433/bookstore_test | |
spring.datasource.driver-class-name=org.postgresql.Driver | |
spring.datasource.username=postgres | |
spring.datasource.password=Pikoff | |
spring.liquibase.user=postgres | |
spring.liquibase.password=Pikoff | |
spring.liquibase.change-log=classpath:db/changelog/changelog-master.xml | |
spring.jpa.properties.hibernate.dialect: org.hibernate.dialect.PostgreSQL95Dialect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public int hashCode() { | |
int result = 1; | |
result = result * 16 + (this.person == null ? 21 : this.person.hashCode()); | |
result = result * 16 + (this.visits == null ? 21 : this.visits.hashCode()); | |
result = result * 16 + (this.specialization == null ? 21 : this.specialization.hashCode()); | |
result = result * 16 + (this.salary == null ? 21 : this.salary.hashCode()); | |
return result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE SEQUENCE hsptl.serial | |
INCREMENT 1 | |
START 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.project.hospital.entity; | |
import lombok.AccessLevel; | |
import lombok.Data; | |
import lombok.experimental.FieldDefaults; | |
import javax.persistence.*; | |
@Data | |
@Entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'org.springframework.boot' version '2.1.7.RELEASE' | |
id 'io.spring.dependency-management' version '1.0.8.RELEASE' | |
id 'java' | |
} | |
group = 'com.project' | |
version = '0.0.1-SNAPSHOT' | |
sourceCompatibility = '11' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package projects.mvc.first.repositorys; | |
import org.apache.log4j.Logger; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Repository; | |
import projects.mvc.first.entitys.Person; | |
import projects.mvc.first.exceptions.db.NoteNotFoundException; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityTransaction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/hosp | |
spring.datasource.username=postgres | |
spring.datasource.password=Pikoff | |
spring.datasource.driver-class-name=org.postgresql.Driver | |
spring.flyway.schemas=myschema | |
spring.jpa.properties.hibernate.dialect: org.hibernate.dialect.PostgreSQL95Dialect | |
spring.jpa.properties.hibernate.connection.driver_class: org.postgresql.Driver | |
spring.jpa.show-sql=true |
NewerOlder