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 model; | |
import repository.UserActions; | |
import java.sql.SQLException; | |
public class Login { | |
private User connectedUser; | |
private UserActions userActions; |
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 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; |
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 bookrental.model.book; | |
import lombok.*; | |
import javax.persistence.*; | |
import javax.validation.constraints.NotNull; | |
@Getter | |
@Setter | |
@EqualsAndHashCode |
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 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 { |
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
interface AccountRepository { | |
Account findById(Id 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
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; |
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 <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 { |
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
class CarRentalEngine { | |
.... | |
void startCarRental() throws SQLException { | |
... | |
while (isInvalid) { | |
try { | |
option = input.nextInt(); | |
if (option == 1 || option == 2) { | |
isInvalid = false; |
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 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; |
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 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; |
OlderNewer