forked from shashirajraja/onlinebookstore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60fb31c
commit cae5357
Showing
15 changed files
with
124 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
<wb-module deploy-name="onlinebookstore-0.0.1-SNAPSHOT"> | ||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> | ||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> | ||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/OnlineBookStore"/> | ||
<property name="context-root" value="onlinebookstore"/> | ||
<property name="java-output-path" value="/onlinebookstore/build/classes"/> | ||
</wb-module> | ||
</project-modules> | ||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
|
||
<wb-module deploy-name="onlinebookstore-0.0.1-SNAPSHOT"> | ||
|
||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> | ||
|
||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> | ||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/> | ||
|
||
<property name="context-root" value="onlinebookstore"/> | ||
|
||
<property name="java-output-path" value="/onlinebookstore/build/classes"/> | ||
|
||
</wb-module> | ||
|
||
</project-modules> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,75 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>onlinebookstore</groupId> | ||
<artifactId>onlinebookstore</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>war</packaging> | ||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-war-plugin</artifactId> | ||
<version>3.2.1</version> | ||
<configuration> | ||
<warSourceDirectory>WebContent</warSourceDirectory> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>org.postgresql</groupId> | ||
<artifactId>postgresql</artifactId> | ||
<version>42.3.7</version> | ||
</dependency> | ||
|
||
|
||
<dependency> | ||
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-java</artifactId> | ||
<version>8.0.28</version> | ||
</dependency> | ||
|
||
|
||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>javax.servlet-api</artifactId> | ||
<version>3.1.0</version> | ||
</dependency> | ||
</dependencies> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>theonlinebookstore</groupId> | ||
<artifactId>theonlinebookstore</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>war</packaging> | ||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<finalName>theonlinebookstore</finalName> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<version>2.3</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>copy</goal> | ||
</goals> | ||
<configuration> | ||
<artifactItems> | ||
<artifactItem> | ||
<groupId>com.github.jsimone</groupId> | ||
<artifactId>webapp-runner</artifactId> | ||
<version>8.0.30.2</version> | ||
<destFileName>webapp-runner.jar</destFileName> | ||
</artifactItem> | ||
</artifactItems> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-war-plugin</artifactId> | ||
<version>3.2.1</version> | ||
<configuration> | ||
<warSourceDirectory>WebContent</warSourceDirectory> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>org.postgresql</groupId> | ||
<artifactId>postgresql</artifactId> | ||
<version>42.3.7</version> | ||
</dependency> | ||
|
||
|
||
<dependency> | ||
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-java</artifactId> | ||
<version>8.0.28</version> | ||
</dependency> | ||
|
||
|
||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>javax.servlet-api</artifactId> | ||
<version>3.1.0</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
File renamed without changes.
14 changes: 7 additions & 7 deletions
14
.../constants/IOnlineBookStoreConstants.java → .../constants/IOnlineBookStoreConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package constants; | ||
|
||
public interface IOnlineBookStoreConstants { | ||
public static String CONTENT_TYPE_TEXT_HTML = "text/html"; | ||
|
||
|
||
} | ||
package constants; | ||
|
||
public interface IOnlineBookStoreConstants { | ||
public static String CONTENT_TYPE_TEXT_HTML = "text/html"; | ||
|
||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions
24
OnlineBookStore/sql/IBookConstants.java → src/main/java/sql/IBookConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package sql; | ||
|
||
public interface IBookConstants { | ||
|
||
public static String TABLE_BOOK = "books"; | ||
|
||
public static String COLUMN_NAME = "name"; | ||
public static String COLUMN_BARCODE = "barcode"; | ||
public static String COLUMN_AUTHOR = "author"; | ||
public static String COLUMN_PRICE = "price"; | ||
public static String COLUMN_QUANTITY = "quantity"; | ||
} | ||
package sql; | ||
|
||
public interface IBookConstants { | ||
|
||
public static String TABLE_BOOK = "books"; | ||
|
||
public static String COLUMN_NAME = "name"; | ||
public static String COLUMN_BARCODE = "barcode"; | ||
public static String COLUMN_AUTHOR = "author"; | ||
public static String COLUMN_PRICE = "price"; | ||
public static String COLUMN_QUANTITY = "quantity"; | ||
} |
30 changes: 15 additions & 15 deletions
30
OnlineBookStore/sql/IUserContants.java → src/main/java/sql/IUserContants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package sql; | ||
|
||
public interface IUserContants { | ||
|
||
public static String TABLE_USERS = "users"; | ||
|
||
public static String COLUMN_USERNAME = "username"; | ||
public static String COLUMN_PASSWORD = "password"; | ||
public static String COLUMN_FIRSTNAME = "firstname"; | ||
public static String COLUMN_LASTNAME = "lastname"; | ||
public static String COLUMN_ADDRESS = "address"; | ||
public static String COLUMN_PHONE = "phone"; | ||
public static String COLUMN_MAILID = "mailid"; | ||
public static String COLUMN_USERTYPE = "usertype"; | ||
} | ||
package sql; | ||
|
||
public interface IUserContants { | ||
|
||
public static String TABLE_USERS = "users"; | ||
|
||
public static String COLUMN_USERNAME = "username"; | ||
public static String COLUMN_PASSWORD = "password"; | ||
public static String COLUMN_FIRSTNAME = "firstname"; | ||
public static String COLUMN_LASTNAME = "lastname"; | ||
public static String COLUMN_ADDRESS = "address"; | ||
public static String COLUMN_PHONE = "phone"; | ||
public static String COLUMN_MAILID = "mailid"; | ||
public static String COLUMN_USERTYPE = "usertype"; | ||
} |