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
/******************************************************************************* | |
* | |
* Pentaho Data Integration | |
* | |
* Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com | |
* | |
******************************************************************************* | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with |
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
Desarrollar la clase Producto para que soporte procesos o reglas dinamicas: | |
class Producto { | |
method1() | |
method2() | |
method3() | |
submit() { | |
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
class Producto { | |
method1() | |
method2() | |
method3() | |
submit() { | |
genericSubmit() | |
} | |
} |
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
package com.empresa.modelo; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.Id; | |
import javax.persistence.Table; | |
@Entity | |
@Table(name = "cliente") | |
public class Cliente { |
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
<!DOCTYPE hibernate-configuration PUBLIC | |
"-//Hibernate/Hibernate Configuration DTD//EN" | |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> | |
<!-- | |
This hibernate configuration is used only for IMAGES_GALLERY stereotype, | |
because this stereotype is implemented using hibernate native APIs. | |
If you do not use IMAGE_GALLERY you do not need this file. | |
The datasource configured here is the datasource in where the images will be |
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
Buildfile: x:\tutoriales\demos\openxava\workspace\eclipse\openxava-4.8\openxava-4.8\workspace\Empresa\build.xml | |
desplegarWar: | |
createDist: | |
init: | |
updateDataSourceInfo: | |
configureJNDI: | |
prepareWar: | |
[copy] Copying 700 files to x:\tutoriales\demos\openxava\workspace\eclipse\openxava-4.8\openxava-4.8\workspace\Empresa\web\xava | |
[copy] Copying 47 files to x:\tutoriales\demos\openxava\workspace\eclipse\openxava-4.8\openxava-4.8\workspace\Empresa\web\WEB-INF | |
createWebXml: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
version="1.0"> | |
<!-- Tomcat + Hypersonic --> | |
<persistence-unit name="default"> |
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
<?xml version='1.0' encoding='utf-8'?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
<Resource | |
name="jdbc/EmpresaDS" | |
auth="Container" | |
type="javax.sql.DataSource" | |
driverClassName="com.mysql.jdbc.Driver" | |
url="jdbc:mysql://localhost:3306/empresa" | |
username="myuser" password="mypass" | |
validationQuery="select 1" | |
maxActive="100" |
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
<target name="actualizarEsquema"> | |
<ant antfile="../OpenXava/build.xml" target="updateSchemaJPA"> | |
<property name="persistence.unit" value="junit"/> | |
<property name="schema.path" value="x:\RICHARD\drivers\mysql-connector-java-5.1.18.jar"/> | |
</ant> | |
</target> |