1 / 22

MY WEB PROJECT

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.

soo
Download Presentation

MY WEB PROJECT

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MY WEB PROJECT

  2. 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

  3. 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

  4. 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

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

  6. 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");} }

  7. 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

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

  9. SQL COMMANDS

  10. 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.

  11. 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 ]; }

  12. HIBERNATE

  13. 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).

  14. 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); }

  15. 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;

  16. Spring FRAMEWORK

  17. 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.

  18. JSF(JAVA SERVER FACES)

  19. 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.

  20. THANK YOU FOR LISTENING Begüm ÖZCAN

More Related