Skip to content

Instantly share code, notes, and snippets.

@must1
must1 / Login
Last active September 14, 2018 15:15
package model;
import repository.UserActions;
import java.sql.SQLException;
public class Login {
private User connectedUser;
private UserActions userActions;
package bookrental.service.book.rentals;
import bookrental.model.account.User;
import bookrental.model.book.Book;
import bookrental.model.book.BookRentals;
import bookrental.repository.account.UserRepository;
import bookrental.repository.book.BookRepository;
import bookrental.repository.book.BookRentalsRepository;
import flexjson.JSONSerializer;
import org.springframework.beans.factory.annotation.Autowired;
package bookrental.model.book;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
@Getter
@Setter
@EqualsAndHashCode
package bookrental.controller.penalty;
import bookrental.service.penalty.PenaltyPaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class PenaltyController {
interface AccountRepository {
Account findById(Id id);
}
package bookrental.account;
import bookrental.bookrentals.BookRentals;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
#include <stdio.h>
#include <unistd.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/shm.h>
#include <unistd.h>
#include <stdlib.h>
struct bufor {
class CarRentalEngine {
....
void startCarRental() throws SQLException {
...
while (isInvalid) {
try {
option = input.nextInt();
if (option == 1 || option == 2) {
isInvalid = false;
package pl.parser.nbp;
import pl.parser.nbp.calculations.RateCalculations;
import pl.parser.nbp.contentfetcher.XMLDataFetcher;
import pl.parser.nbp.model.Rates;
import pl.parser.nbp.validation.ConditionChecker;
import pl.parser.nbp.historysystem.HistorySystem;
import pl.parser.nbp.view.NbpParserView;
import java.io.IOException;
package bookstore.scraper.book.scrapingtypes;
import bookstore.scraper.Bookstore;
import bookstore.scraper.book.Book;
import bookstore.scraper.empik.EmpikFetchingBookService;
import bookstore.scraper.merlin.MerlinFetchingBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;