Sei sulla pagina 1di 5

OMS Order Management System It Is The Application Of Walmart This application Is Used By

Walamart Support Team There Are Various Modules Are There Like POS,WOS,IOS Which contain
Various Sub-Modules And Iam working On One of This Module & there Some Sub-Modules like
Search Criteria ,Invoice Generator..

APPLICATION USED-This Application Is With In the Organization To Check The Product Details

In easy Manner..

Purchase Order Services-A purchase order (PO) is a document requested by a department and
issued by a buyer indicating the type, description, quantities and price for a product or service

Sub-Modules-

@Search Criteria
Search Criteria-
Search criteria is one specific service which will be interact will all
the given modules the name itself self-explanatory.
It Take some Input Like Txid,Item Id...Based on this Id It Interact with DB And Fetch The Data
From DB (MVC)

So In this Modules is Used to generate PDF of all


Invoice Generator-
product Details then we are attaching this PDF and Send across to
ALL management Team over The mail.
Here Iam Using ITEXT API To Generate the PDF Of Product Details

Coming To Design Pattern Im Not Using Any Design Pattern Here Explicityly Bcs Spring Provide
Much More Design Pattern Implicityly Is used In this Project Like Singleton,MVC ......

Technologies

Java 1.7

Spring 4.x

Hibernate 4.x

Restful Webservices

1.What is database indexing and partitioning in db?

Indexing is a data structure technique. to efficiently retrieve records from the database files
based on some attributes on which the indexing has been done Instead Of Scanning of Whole
Table

LAYMAN Ex-If we want to Find Some Important Book pages Instead Of scanning Whole Book we
should Go Through There Index In There Content

Used-An index is used for several different reasons. The main reason is to speed up querying so
that you can get rows or sort rows faster

Types Of INDEXING

Simple INDEX : Create INDEX on one column.

Composite INDEX : Create INDEX on multiple columns.

Unique INDEX : Create INDEX on column for restrict duplicate values on INDEX column.

&

Partioning DB

Partitioning is the database process where very large tables are divided into multiple smaller
parts. By splitting a large table into smaller, individual tables, so that by using a queries we can
access a data in a fraction of time .bcs there is less that to scan

DESIGN PATTERN-Design pattern Is a Well proved Solutions For A common Reoccuring Problem
In a Software Development environment

Usign design pattern make your code more readable,easy to maintain and more flexible to make
enhancements

Basically, design patterns are categorized into two parts:

1.Core java (or JSE) Design Patterns.

2.JEE Design Patterns.

Core java (or JSE) Design Patterns. 3 Types

1.creational 2. structural 3.Behaviorl

2.J2EE is having more.......


What is the difference between Abstract factory pattern and factory pattern?

Ans-Factory pattern is also known as factory method ..it is the method of java class which is
capable of creating and returning its own class or other class object

When a class doesn't know what sub-classes will be required to create than we should go for
factory pattern

and

ans-Abstract Factory patterns work around a super-factory which creates other factories.

In Abstract Factory pattern an interface is responsible for creating a factory of related objects
without explicitly specifying their classes

How to do join in hibernate?

Join statements are used when one wants to fetch data from multiple tables of database.
Hibernate provides support for join statements where one can write single query to fetch data
from multiple tables easily.

--Hibernate provides 4 types of joins..

1)Left Join

2)Right Join

3)Full Join

4)Inner Join

ex-

SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();

Session session = sessionFactory.openSession();


session.beginTransaction();

String select = "FROM Employee e INNER JOIN Team t ON e.Id_team=t.Id_team";

Query query = session.createQuery(select);

List elist = query.list();

session.getTransaction().commit();

session.close();

OR

ex

Configuration cfg = new Configuration();

cfg.configure("hibernate.cfg.xml");

SessionFactory factory = cfg.buildSessionFactory();

Session session = factory.openSession();

Query qry= session.createQuery("select v.vendorName, c.customerName from


Vendor v Left Join v.children c");

List l = qry.list();

Iterator it=l.iterator();

while(it.hasNext())

Object rows[] = (Object[])it.next();

System.out.println(rows[0]+ " -- " +rows[1]);

}
}

Potrebbero piacerti anche