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
application.properties: | |
spring.jpa.properties.hibernate.format_sql=true | |
logging.level.org.hibernate.SQL=DEBUG | |
logging.level.org.hibernate.cache.internal=TRACE | |
=================================================================================================== | |
StudentController.java: |
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.sunmeat.hibernate; | |
import jakarta.persistence.Entity; | |
import jakarta.persistence.GeneratedValue; | |
import jakarta.persistence.GenerationType; | |
import jakarta.persistence.Id; | |
import jakarta.persistence.Table; | |
import jakarta.persistence.Version; | |
/** |
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
#include <iostream> | |
using namespace std; | |
class Fraction { | |
int numerator; | |
int denominator; | |
// наибольший общий делитель | |
int gcd(int a, int b) { | |
while (b != 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
print("Демонстрація всіх escape-послідовностей в Python:\n") | |
print("1. Нова строка: \\n -> Це перша строка.\nЦе друга строка.") | |
print("2. Горизонтальна табуляція: \\t -> Це текст з табуляцією:\tТаб.") | |
print("3. Обратний слеш: \\\\ -> Показує слеш \\.") | |
print("4. Одинарна лапка: \\\' -> Це текст з одинарною кавичкою: \'Приклад\'.") | |
print('5. Подвійна лапка: \\" -> Це текст з подвійною кавичкою: \"Приклад\".') | |
print("6. Повернення каретки: \\r -> Повернення каретки перезаписує рядок\rНова строка.") | |
print("7. Обратна табуляція: \\b -> Текст з оборотною табуляцією: Приклад\b.") | |
################################################################################################### |
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
Course.java: | |
... | |
@Entity | |
@Table(name = "courses") | |
public class Course { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Long id; |
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
StudentRepo.java: | |
package com.sunmeat.hibernate; | |
import org.springframework.data.jpa.repository.JpaRepository; | |
import org.springframework.data.jpa.repository.Query; | |
import org.springframework.data.repository.query.Param; | |
import java.util.List; |
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
#include <windows.h> | |
#include <iostream> | |
#include <conio.h> | |
using namespace std; | |
enum Objects { HALL, WALL, COIN, ENEMY, MKIT, COFFEE, BOSS }; | |
enum Keycodes { DOWN = 80, UP = 72, LEFT = 75, RIGHT = 77, ENTER = 13, ESCAPE = 27, BACKSPACE = 8, SPACEBAR = 32 }; | |
enum Colors { BLACK, DARKBLUE, DARKGREEN, DARKCYAN, DARKRED, BROWN = 4, DARKMAGENTA, DARKPINK = 5, DARKYELLOW, GREY, GRAY = 7, DARKGREY, BLUE, GREEN, CYAN, RED, PINK, YELLOW, WHITE }; | |
int main() |
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
#include <iostream> | |
using namespace std; | |
#pragma warning(disable:4996) | |
int main() | |
{ | |
setlocale(0, ""); | |
char word[100]; | |
char theme[100]; |
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
#include <iostream> | |
#include <windows.h> | |
#include <conio.h> | |
using namespace std; | |
enum KeyCodes { ENTER = 13, ESCAPE = 27, LEFT = 75, RIGHT = 77, UP = 72, DOWN = 80, SPACEBAR = 32 }; | |
enum Colors { DARKGREEN = 2, RED = 12, YELLOW = 14, BLUE = 9, PINK = 4, WHITE = 5, MAGENTA = 13 }; | |
enum Objects { HALL, WALL, COIN, ENEMY, BOMB, BONUS_ENERGY, BONUS_HP, SECOND_ENEMY, THIRD_ENEMY }; | |
void generation_location(int HEIGHT, int WIDTH, int location[][50]); |
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
#include <iostream> | |
using namespace std; | |
// Задание 1 | |
/*int main() | |
{ | |
setlocale(0, ""); | |
int a = 10; | |
double b = 20.0; | |
string c = "30"; | |
char d = 'x'; |
NewerOlder