Skip to content

Instantly share code, notes, and snippets.

View KiryhaPikoff's full-sized avatar
🏠
Working from home

Кирилл KiryhaPikoff

🏠
Working from home
View GitHub Profile
{
"$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,
##############################################< USER >#################################################
- changeSet:
id: 07-07-20_00
author: KiryhaPikoff
preConditions:
- onFail: MARK_RAN
- not:
tableExists:
tableName: user
changes:
<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>
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
@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;
CREATE SEQUENCE hsptl.serial
INCREMENT 1
START 0;
package com.project.hospital.entity;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import javax.persistence.*;
@Data
@Entity
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'
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;
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