My web project
Download
1 / 22

MY WEB PROJECT - PowerPoint PPT Presentation


  • 172 Views
  • Uploaded on

MY WEB PROJECT. INDEX. WHAT HAVE I LEARNED? Maven slf4j,log4j Database design-Navicat s ql and its orders Servlet Hibernate Hibernate Spring Framework j sf j sf crud css exadel. MAVEN.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'MY WEB PROJECT' - soo


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Index
INDEX

  • WHAT HAVE I LEARNED?

  • Maven

  • slf4j,log4j

  • Database design-Navicat

  • sql and its orders

  • Servlet

  • Hibernate

  • Hibernate

  • Spring Framework

  • jsf

  • jsf crud

  • css

  • exadel


Maven
MAVEN

Apache Maven is a software project management. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

Adding dependency to the classpath


Log4j
LOG4J

  • Apache log4j is a Java-based logging utility and is one of several Java Logging Frameworks.

  • Loggers: Theyare logical log file names and eachlogger is independently configurable as to what level of logging it currently logs.

  • ERROR

  • WARN

  • INFO

  • DEBUG

  • TRACE


Slf4j
SLF4J

Simple Logging Facade for Java (SLF4J) provides a Java logging API by means of a simple facade pattern.


Hello world
HELLO WORLD

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

public class HelloWorld {

public static void main(String[] args) {Logger logger=LoggerFactory.getLogger(HelloWorld.class);logger.info("Hello World");}

}


Database
DATABASE

  • A database is an organized collection of data for one or more purposes , usually in digital form.

    Benefits:

  • Fast and efficient data retrieval

  • Enable us to break data into specific parts

  • Security and flexibility


Sql structured query language
SQL(STRUCTURED QUERY LANGUAGE)

SQL is a database computer declarative language designed for managing datain relational database management systems (RDBMS).



Servlet http servlet
SERVLET(HTTP SERVLET)

A servletis a Java programming language class used to extend the capabilities of servers that host applications accessed via a request-response programming model.

Servlet is a java web controller.


Getting loop with map
Getting loop with Map

Map params = request.getParameterMap();

Iterator i = params.keySet().iterator();

while ( i.hasNext() )

{

String key = (String) i.next();

String value = ((String[]) params.get( key ))[ 0 ];

}



What for hibernate
WHAT FOR HIBERNATE?

Hibernate is the most popular object/relational mapping solution for Java.

Hibernate is an object-relational mapping(ORM) library for the Javalanguage, providing a frameworkfor mapping an object-orienteddomain modelto a traditional relational database.

Hibernate's primary feature is mapping from Java classes to database tables (and from Java data types to SQLdata types).


Creating database with hibernate
Creating database with Hibernate

@Autowired

Car car;

@Override

@Transactional

publicvoiddoWork() {

Car car1 = new Car();

car1.setColour("blue");

car1.setName("Audi");

car1.setPrize(123.000);

Car car2 = new Car();

car2.setColour("red");

car2.setName("Ford Focus");

car2.setPrize(100.000);

}


Car class
Car Class

@[email protected](name="CAR")public class Car {@[email protected]@Column(name="COLOUR")private String colour;@Column(name="NAME")private String name;@Column(name="PRİZE")private double prize;



The Spring Framework is an opensourceapplication frameworkfor the Java platform.

Although the Spring Framework does not impose any specific programming model , it has become popular in the Java community as an alternative to, replacement for, or even addition to the Enterprise JavaBean(EJB) model.


Jsf java server faces
JSF(JAVA SERVER FACES)


JSF is a request-driven MVC (Model View Controller) web framework based on component-driven UI design model, using XML files called view templates or Facelets views.

XML: Extensible Markup Language (XML) is a set of rules for encoding documents in machine-readable form.



ad