Anastasiia's repositories
AbstractFactory
Create a game using the Abstract Factory pattern.
Builder
Create a House class with the number of rooms, the presence of a pool. Use the Builder design pattern to create a House object. Create several House objects with different characteristics using different ConcreteBuilder and HouseDirector options. Output information about the House objects to the console.
ElectricApplianceDAO
Determine the hierarchy of electrical appliances. Plug some in. Calculate the power consumption. Carry out sorting of appliances in the apartment based on power. Find a device in the apartment that matches the specified range of parameters. Use database access and DAO.
FactoryMethod
A video game involves several types of characters. Each character has a name, a health level, a damage level, and a special ability. The wizards can cast spells, the warriors can block attacks, and the archers can shoot arrows. You have been tasked with implementing a factory method to create these characters.
FactoryMethodMavenHibernate
Create a new database using MySQLWorkbench, Maven project and set it up properly, hibernate.cfg.xml settings file, create with using hibernate a new table with initial value.
FromFormToFileSpringMvc
Create a controller and an HTML form, from which data will be written to a file, and after sending the form, a message will be displayed about the successful operation and the number of records for the entire time the application is running.
GradleHibernateBook
Get a Book object and a collection of objects. Get a specific Book by id. Add New Book. And this is all implemented in the BookHelper class.
HibernateAnimal
Create a new database using MySQLWorkbench, Gradle project and set it up properly, hibernate.cfg.xml settings file, Animal(int age, String name, boolean tail) class with get and set methods, as an entity to our table, with using hibernate a new table with initial value.
HibernateDelete
In the BookHelper class add methods for deleting a book by id and by author.
HibernateFlush
Loop through 200 author objects and save them to the database. Field values can be any. Use the flush method for every 10 objects. Execute the commit method once at the end.
HibernateFlushLogging
Set up project logging
HibernateManyToMany
Using MySQL Workbench to rewrite the database so that one book could be written by several authors, also one author can write several books. Implement a many-to-many relationship.
HibernateSelectDelete
Write a method for selecting by searching for an expression, and rewrite the createCriteria and createCriteriaLogic methods correctly
HibernateUpdate
Update the name field for all records whose last_name field value length is greater than 7 In the name field, write the value "1" * Task for independent search for solutions.
HibernateUpdateAuthorById
Add a method to update the author's name by id.
JpaHibernateAnimal
Create a new database using MySQLWorkbench. Create a regular java project and connect the JPA and Hibernate libraries to it. Create a file with persistence.xml settings in the META-INF folder. And create an Animal class with get and set methods as an entity to our table. And using jpa to make crud in the AnimalHelper class.
Json4Currencies
Using JSON, connect to the NBU and find out the current exchange rate.
JsonSpringMvc
Create a new controller with a different mapping that will only accept Get requests and return randomly generated information in JSON format.
PojoDiIocQuest
Create the Quest interface and several of its implementations, as well as the Knight class. A knight can accept any implementation of the Quest interface and complete that Quest successfully. Use new knowledge about POJOs, DI & IoC while doing the task.
SpringAopAfterThrowing
Implement the Exception output aspect. Create a method of dividing numbers. In case of an error: displays it on the screen.
SpringAopExecutionSpeed
Display the execution speed of only those methods that are marked with @ShowTime. Output results to the console only for those methods marked with @ShowResult. Create @ShowTime and @ShowResult yourself.
SpringAopFolderNameStatistic
Add folder name output. Display statistics by extensions.
SpringAopTwoMethodsToPrint
Display the runtime of only those methods that return the Map type. Split the print method into 2 types: the first prints only Set, the second prints only Map.
SpringConfigCandy
Create a new class with multiple fields. Some fields must be set using the constructor, some using the setter method, and some using the init method, which you must specify when you declare the bean in the configuration. Transform the XML configuration into a Java configuration. Create a Map bean in the XML configuration.
StaticFactoryBook
Сreate a Book class, which represents a book with a title, author, and year of publication. To create an instance of the Book class, you should use a static factory called BookFactory
StaxParserCandies
Create an xml-document candies.xml, with a root element that will contain several candies with characteristics. Using the StAX parser, get the Candy collection from the xml file.
TightLooseCouplingUser
Change the strongly coupled code to loosely coupled on the example of the User class.
XmlPrintInsideTag
Using file manipulation, output not all the contents of the XML document, but only what is inside the tag.