-
Notifications
You must be signed in to change notification settings - Fork 0
Se adicionan librerias clases para manejo de persistencia jpa. #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
f22aeef
ecf6265
8228555
0bb5a7d
a260f90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #MyEclipse Hibernate Properties | ||
| #Thu Mar 24 12:22:19 COT 2016 | ||
| genBasicCompId=true | ||
| sessionFactoryName=zen.persistence.financial.HibernateSessionFactory | ||
| profile= | ||
| daoSFId= | ||
| jndiPath= | ||
| detectM2M=false | ||
| reStrategyClass= | ||
| detectO2O=false | ||
| springDaoFile= | ||
| useJavaTypes=true | ||
| keyGenerator= | ||
| genVersionTag=false | ||
| sessionFactoryId= | ||
| basePersistenceClass= | ||
| genAnnotations=true | ||
| reSettingsFile= | ||
| configFile=/zen/src/zen/persistence/financial/hibernate.cfg.xml | ||
| createConfigFile=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <classpath> | ||
| <classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="WebContent"/> | ||
| <classpathentry kind="src" path="WebRoot"/> | ||
| <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> | ||
| <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject"> | ||
| <attributes> | ||
| <attribute name="hide" value="true"/> | ||
| </attributes> | ||
| </classpathentry> | ||
| <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/> | ||
| <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary/StandardBrowser/html5"/> | ||
| <classpathentry kind="output" path=""/> | ||
| </classpath> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,8 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> | ||
| <wb-module deploy-name="ProyectoTest"> | ||
| <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> | ||
| <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/> | ||
| <wb-module deploy-name="zen"> | ||
| <wb-resource deploy-path="/" source-path="/WebRoot" tag="defaultRootSource"/> | ||
| <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> | ||
| <property name="context-root" value="ProyectoTest"/> | ||
| <property name="java-output-path" value="/ProyectoTest/build/classes"/> | ||
| <property name="context-root" value="zen"/> | ||
| <property name="java-output-path" value="/zen/WebRoot/WEB-INF/classes"/> | ||
| </wb-module> | ||
| </project-modules> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,12 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <faceted-project> | ||
| <runtime name="Apache Tomcat v8.0"/> | ||
| <fixed facet="wst.jsdt.web"/> | ||
| <fixed facet="jst.web"/> | ||
| <fixed facet="java"/> | ||
| <installed facet="java" version="1.7"/> | ||
| <installed facet="jst.web" version="3.1"/> | ||
| <installed facet="jst.web.jstl" version="1.2.2"/> | ||
| <installed facet="wst.jsdt.web" version="1.0"/> | ||
| <installed facet="java" version="1.7"/> | ||
| <installed facet="me.hibernate" version="4.1"/> | ||
| </faceted-project> |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "plugins": { | ||
| "guess-types": { | ||
|
|
||
| }, | ||
| "outline": { | ||
|
|
||
| } | ||
| }, | ||
| "libs": [ | ||
| "ecma5", | ||
| "browser" | ||
| ] | ||
| } |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| <%@page import="zen.test.PersistenceTest"%> | ||
| <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> | ||
| <% | ||
| String path = request.getContextPath(); | ||
| String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | ||
| // new PersistenceTest().test(); | ||
| %> | ||
|
|
||
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
| <html> | ||
| <head> | ||
| <base href="<%=basePath%>"> | ||
|
|
||
| <title>My JSP 'index.jsp' starting page</title> | ||
| <meta http-equiv="pragma" content="no-cache"> | ||
| <meta http-equiv="cache-control" content="no-cache"> | ||
| <meta http-equiv="expires" content="0"> | ||
| <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> | ||
| <meta http-equiv="description" content="This is my page"> | ||
| <!-- | ||
| <link rel="stylesheet" type="text/css" href="styles.css"> | ||
| --> | ||
| </head> | ||
|
|
||
| <body> | ||
| This is my JSP page. <br> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,28 @@ | ||
| <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>ProyectoTest</groupId> | ||
| <artifactId>ProyectoTest</artifactId> | ||
| <groupId>zen</groupId> | ||
| <artifactId>zen</artifactId> | ||
| <version>0.0.1-SNAPSHOT</version> | ||
| <packaging>war</packaging> | ||
| <name>ProyectoTest</name> | ||
| <build> | ||
| <sourceDirectory>src</sourceDirectory> | ||
| <plugins> | ||
| <plugin> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <version>3.3</version> | ||
| <version>3.1</version> | ||
| <configuration> | ||
| <source>1.8</source> | ||
| <target>1.8</target> | ||
| <source>1.7</source> | ||
| <target>1.7</target> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <artifactId>maven-war-plugin</artifactId> | ||
| <version>2.6</version> | ||
| <version>2.4</version> | ||
| <configuration> | ||
| <warSourceDirectory>WebContent</warSourceDirectory> | ||
| <warSourceDirectory>WebRoot</warSourceDirectory> | ||
| <failOnMissingWebXml>false</failOnMissingWebXml> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>javax.servlet</groupId> | ||
| <artifactId>javax.servlet-api</artifactId> | ||
| <version>3.0.1</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <?xml version='1.0' encoding='UTF-8'?> | ||
| <!DOCTYPE hibernate-configuration PUBLIC | ||
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN" | ||
| "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | ||
| <!-- Generated by MyEclipse Hibernate Tools. --> | ||
| <hibernate-configuration> | ||
|
|
||
| <session-factory> | ||
| <property name="dialect"> | ||
| org.hibernate.dialect.MySQLDialect | ||
| </property> | ||
| <property name="connection.url"> | ||
| jdbc:mysql://localhost:3306/financial | ||
| </property> | ||
| <property name="connection.username">root</property> | ||
| <property name="connection.password">root</property> | ||
| <property name="connection.driver_class"> | ||
| com.mysql.jdbc.Driver | ||
| </property> | ||
| <mapping class="model.financial.Usuarios" /> | ||
|
|
||
| </session-factory> | ||
|
|
||
| </hibernate-configuration> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package model.financial; | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sobra este espacio |
||
| import org.hibernate.annotations.NamedNativeQueries; | ||
| import org.hibernate.annotations.NamedNativeQuery; | ||
| import org.hibernate.annotations.NamedQueries; | ||
|
|
||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sobra un espacio |
||
| @NamedQueries({ | ||
| @org.hibernate.annotations.NamedQuery( | ||
| name = "findGetAllUser", | ||
| query = "from Usuarios o " | ||
| + " where o.userName = :userName" | ||
| + " and o.password = :password" | ||
| + " and o.names = :names" | ||
| + " and o.lastName = :lastName" | ||
|
|
||
| ) | ||
| }) | ||
|
|
||
| @NamedNativeQueries({ | ||
| @NamedNativeQuery( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. El espaciado de esta clase esta mal |
||
| name = "findGetAllUserNative", | ||
| query = "select * from Usuarios where user_name = :userName and password = :password and names = :names and last_name = :lastName", | ||
| resultClass = Usuarios.class | ||
| ) | ||
| }) | ||
| public class NameQryUsers { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cambiar el nombre de la clase por algo significado. ¿Qué es Qry? |
||
| public enum FieldsUser{ Name, Password, Names, LastName}; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cambiar el nombre de la clase por algo que tenga significado