220 likes | 424 Views
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.
E N D
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 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 • 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 Simple Logging Facade for Java (SLF4J) provides a Java logging API by means of a simple facade pattern.
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 • 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 is a database computer declarative language designed for managing datain relational database management systems (RDBMS).
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 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? 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 @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 @Entity@Table(name="CAR")public class Car {@Id@GeneratedValue@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 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.
THANK YOU FOR LISTENING Begüm ÖZCAN