Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dangthai121200 committed Nov 25, 2021
1 parent 1cbde24 commit 2cb33dc
Show file tree
Hide file tree
Showing 101 changed files with 1,656 additions and 1,232 deletions.
10 changes: 9 additions & 1 deletion build/web/404.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@
Sorry, an error has occured, Requested page not found!
</div>
<div class="error-actions">
<a href="#" class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-home"></span>Take Me Home </a>
<a href="
<%
if(request.getSession().getAttribute("admin")!=null){
out.print(request.getContextPath()+"/ControllerPage?page=home");
}else{
out.print(request.getContextPath());
}
%>"
class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-home"></span>Take Me Home </a>
<a href="#" class="btn btn-default btn-lg"><span class="glyphicon glyphicon-envelope"></span> Contact Support </a>
</div>
</div>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified build/web/WEB-INF/classes/controller/ControllerMovie.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/web/WEB-INF/classes/dao/DaoAdmin.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/dao/DaoCategory.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/dao/DaoFilmType.class
Binary file not shown.
Binary file modified build/web/WEB-INF/classes/dao/DaoMovie.class
Binary file not shown.
Binary file modified build/web/WEB-INF/classes/dao/DaoMovieAdmin.class
Binary file not shown.
36 changes: 0 additions & 36 deletions build/web/WEB-INF/classes/entity/Admin.hbm.xml

This file was deleted.

21 changes: 0 additions & 21 deletions build/web/WEB-INF/classes/entity/Category.hbm.xml

This file was deleted.

18 changes: 0 additions & 18 deletions build/web/WEB-INF/classes/entity/CategoryMoive.hbm.xml

This file was deleted.

21 changes: 0 additions & 21 deletions build/web/WEB-INF/classes/entity/Filmtype.hbm.xml

This file was deleted.

Binary file removed build/web/WEB-INF/classes/entity/Movie$1.class
Binary file not shown.
54 changes: 0 additions & 54 deletions build/web/WEB-INF/classes/entity/Movie.hbm.xml

This file was deleted.

24 changes: 0 additions & 24 deletions build/web/WEB-INF/classes/entity/MovieAdmin.hbm.xml

This file was deleted.

12 changes: 6 additions & 6 deletions build/web/WEB-INF/classes/hibernate.cfg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ Contributor(s):
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/manage_movie?zeroDateTimeBehavior=convertToNull&amp;characterEncoding=UTF-8</property>
<property name="hibernate.connection.username">root</property>
<mapping resource="entity/Category.hbm.xml"/>
<mapping resource="entity/Filmtype.hbm.xml"/>
<mapping resource="entity/Movie.hbm.xml"/>
<mapping resource="entity/MovieAdmin.hbm.xml"/>
<mapping resource="entity/CategoryMoive.hbm.xml"/>
<mapping resource="entity/Admin.hbm.xml"/>
<mapping resource="model/Category.hbm.xml"/>
<mapping resource="model/Filmtype.hbm.xml"/>
<mapping resource="model/Movie.hbm.xml"/>
<mapping resource="model/MovieAdmin.hbm.xml"/>
<mapping resource="model/CategoryMoive.hbm.xml"/>
<mapping resource="model/Admin.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Binary file modified build/web/WEB-INF/classes/imp/ICheckName.class
Binary file not shown.
Binary file added build/web/WEB-INF/classes/imp/ICheckPassword.class
Binary file not shown.
Binary file not shown.
35 changes: 35 additions & 0 deletions build/web/WEB-INF/classes/model/Admin.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!-- Generated Nov 11, 2021 2:40:31 PM by Hibernate Tools 4.3.1 -->
<hibernate-mapping>
<class catalog="manage_movie" name="model.Admin" optimistic-lock="version" table="admin">
<id name="idAdmin" type="java.lang.Integer">
<column name="id_admin"/>
<generator class="identity"/>
</id>
<property name="fullName" type="string">
<column length="30" name="fullName"/>
</property>
<property name="username" type="string">
<column length="30" name="username" unique="true"/>
</property>
<property name="password" type="string">
<column length="30" name="password"/>
</property>
<property name="birthday" type="date">
<column length="10" name="birthday"/>
</property>
<property name="gmail" type="string">
<column length="30" name="gmail"/>
</property>
<property name="sdt" type="java.lang.Integer">
<column name="sdt"/>
</property>
<set fetch="select" inverse="true" lazy="true" name="movieAdmins" table="movie_admin">
<key>
<column name="id_admin"/>
</key>
<one-to-many class="model.MovieAdmin"/>
</set>
</class>
</hibernate-mapping>
Binary file not shown.
20 changes: 20 additions & 0 deletions build/web/WEB-INF/classes/model/Category.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!-- Generated Nov 11, 2021 2:40:31 PM by Hibernate Tools 4.3.1 -->
<hibernate-mapping>
<class catalog="manage_movie" name="model.Category" optimistic-lock="version" table="category">
<id name="idCategory" type="java.lang.Integer">
<column name="id_category"/>
<generator class="identity"/>
</id>
<property name="name" type="string">
<column length="40" name="name" not-null="true" unique="true"/>
</property>
<set fetch="select" inverse="true" lazy="true" name="categoryMoives" table="category_moive">
<key>
<column name="id_category"/>
</key>
<one-to-many class="model.CategoryMoive"/>
</set>
</class>
</hibernate-mapping>
Binary file not shown.
17 changes: 17 additions & 0 deletions build/web/WEB-INF/classes/model/CategoryMoive.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!-- Generated Nov 11, 2021 2:40:31 PM by Hibernate Tools 4.3.1 -->
<hibernate-mapping>
<class catalog="manage_movie" name="model.CategoryMoive" optimistic-lock="version" table="category_moive">
<id name="idCategoryMoive" type="java.lang.Integer">
<column name="id_categoryMoive"/>
<generator class="identity"/>
</id>
<many-to-one class="model.Category" fetch="select" name="category">
<column name="id_category"/>
</many-to-one>
<many-to-one class="model.Movie" fetch="select" name="movie">
<column name="id_movie"/>
</many-to-one>
</class>
</hibernate-mapping>
Binary file not shown.
20 changes: 20 additions & 0 deletions build/web/WEB-INF/classes/model/Filmtype.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!-- Generated Nov 11, 2021 2:40:31 PM by Hibernate Tools 4.3.1 -->
<hibernate-mapping>
<class catalog="manage_movie" name="model.Filmtype" optimistic-lock="version" table="filmtype">
<id name="idFilmType" type="java.lang.Integer">
<column name="id_filmType"/>
<generator class="identity"/>
</id>
<property name="name" type="string">
<column length="40" name="name" not-null="true" unique="true"/>
</property>
<set fetch="select" inverse="true" lazy="true" name="movies" table="movie">
<key>
<column name="id_filmType" not-null="true"/>
</key>
<one-to-many class="model.Movie"/>
</set>
</class>
</hibernate-mapping>
Binary file removed build/web/WEB-INF/classes/model/ModelAdmin.class
Binary file not shown.
Binary file not shown.
53 changes: 53 additions & 0 deletions build/web/WEB-INF/classes/model/Movie.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!-- Generated Nov 11, 2021 2:40:31 PM by Hibernate Tools 4.3.1 -->
<hibernate-mapping>
<class catalog="manage_movie" name="model.Movie" optimistic-lock="version" table="movie">
<id name="idMovie" type="java.lang.Integer">
<column name="id_movie"/>
<generator class="identity"/>
</id>
<many-to-one class="model.Filmtype" fetch="select" name="filmtype">
<column name="id_filmType" not-null="true"/>
</many-to-one>
<property name="nameMovie" type="string">
<column length="100" name="nameMovie" not-null="true" unique="true"/>
</property>
<property name="country" type="string">
<column length="50" name="country"/>
</property>
<property name="director" type="string">
<column length="30" name="director"/>
</property>
<property name="timeMovie" type="time">
<column length="8" name="timeMovie"/>
</property>
<property name="statusMovie" type="string">
<column length="15" name="statusMovie"/>
</property>
<property name="urlimage" type="string">
<column length="65535" name="urlimage"/>
</property>
<property name="content" type="string">
<column length="65535" name="content"/>
</property>
<property name="yearOfManufacture" type="java.lang.Integer">
<column name="yearOfManufacture"/>
</property>
<property name="dateAdd" type="timestamp">
<column length="19" name="dateAdd"/>
</property>
<set fetch="select" inverse="true" lazy="true" name="movieAdmins" table="movie_admin">
<key>
<column name="id_movie"/>
</key>
<one-to-many class="model.MovieAdmin"/>
</set>
<set fetch="select" inverse="true" lazy="true" name="categoryMoives" table="category_moive">
<key>
<column name="id_movie"/>
</key>
<one-to-many class="model.CategoryMoive"/>
</set>
</class>
</hibernate-mapping>
Binary file not shown.
23 changes: 23 additions & 0 deletions build/web/WEB-INF/classes/model/MovieAdmin.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!-- Generated Nov 11, 2021 2:40:31 PM by Hibernate Tools 4.3.1 -->
<hibernate-mapping>
<class catalog="manage_movie" name="model.MovieAdmin" optimistic-lock="version" table="movie_admin">
<id name="idMovieAdmin" type="java.lang.Integer">
<column name="id_movieAdmin"/>
<generator class="identity"/>
</id>
<many-to-one class="model.Admin" fetch="select" name="admin">
<column name="id_admin"/>
</many-to-one>
<many-to-one class="model.Movie" fetch="select" name="movie">
<column name="id_movie"/>
</many-to-one>
<property name="dateAction" type="date">
<column length="10" name="dateAction"/>
</property>
<property name="title" type="string">
<column length="65535" name="title"/>
</property>
</class>
</hibernate-mapping>
Binary file added build/web/WEB-INF/classes/regex/Regex.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 2cb33dc

Please sign in to comment.