Skip to content

Commit

Permalink
Cadastro de Anúncio
Browse files Browse the repository at this point in the history
Cadastro de Anúncio: imóveis, móveis, material e upload de imagens.
  • Loading branch information
MarcosAnt committed May 6, 2018
1 parent d9a5565 commit 379af8b
Show file tree
Hide file tree
Showing 32 changed files with 761 additions and 84 deletions.
Binary file modified build/web/WEB-INF/classes/br/com/tads/tccpool/beans/Anuncio.class
Binary file not shown.
Binary file not shown.
Binary file modified build/web/WEB-INF/classes/br/com/tads/tccpool/beans/Imovel.class
Binary file not shown.
Binary file not shown.
Binary file modified build/web/WEB-INF/classes/br/com/tads/tccpool/beans/User.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions nbproject/build-impl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -999,12 +999,14 @@ exists or setup the property manually. For example like this:
<target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
<copyfiles files="${libs.MySQLDriver.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${libs.jstl.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-fileupload-1.3.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
</target>
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
<copyfiles files="${libs.MySQLDriver.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.jstl.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-fileupload-1.3.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
<delete dir="${build.web.dir}/WEB-INF/lib"/>
Expand Down
6 changes: 3 additions & 3 deletions nbproject/genfiles.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
build.xml.data.CRC32=0067c6d5
build.xml.data.CRC32=ac8f0148
build.xml.script.CRC32=0e979702
build.xml.stylesheet.CRC32=[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=0067c6d5
nbproject/build-impl.xml.script.CRC32=7b4d9328
nbproject/build-impl.xml.data.CRC32=ac8f0148
nbproject/build-impl.xml.script.CRC32=0456f2db
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]
4 changes: 3 additions & 1 deletion nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dist.war=${dist.dir}/${war.name}
endorsed.classpath=\
${libs.javaee-endorsed-api-7.0.classpath}
excludes=
file.reference.commons-fileupload-1.3.3.jar=C:\\Users\\Marcos\\Downloads\\commons-fileupload-1.3.3-bin\\commons-fileupload-1.3.3.jar
includes=**
j2ee.compile.on.save=true
j2ee.copy.static.files.on.save=true
Expand All @@ -50,7 +51,8 @@ j2ee.server.type=gfv3ee6
jar.compress=false
javac.classpath=\
${libs.MySQLDriver.classpath}:\
${libs.jstl.classpath}
${libs.jstl.classpath}:\
${file.reference.commons-fileupload-1.3.3.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.debug=true
Expand Down
4 changes: 4 additions & 0 deletions nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<file>${libs.jstl.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-fileupload-1.3.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
</web-module-libraries>
<web-module-additional-libraries/>
<source-roots>
Expand Down
3 changes: 2 additions & 1 deletion src/java/br/com/tads/tccpool/beans/Anuncio.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
package br.com.tads.tccpool.beans;

import br.com.tads.tccpool.interfaces.Anunciavel;
import java.io.Serializable;


/**
*
* @author onurb
*/
public class Anuncio{
public class Anuncio implements Serializable {
public Anunciavel obj;

public Anunciavel getObj() {
Expand Down
4 changes: 3 additions & 1 deletion src/java/br/com/tads/tccpool/beans/Categoria.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
*/
package br.com.tads.tccpool.beans;

import java.io.Serializable;

/**
*
* @author onurb
*/
public class Categoria {
public class Categoria implements Serializable {
private int id;
private String descricao;

Expand Down
37 changes: 21 additions & 16 deletions src/java/br/com/tads/tccpool/beans/Imovel.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@
package br.com.tads.tccpool.beans;

import br.com.tads.tccpool.interfaces.Anunciavel;
import java.io.Serializable;

/**
*
* @author onurb
*/
public class Imovel implements Anunciavel{
private String descricao;
private String titulo;
private float preco;
private String rua;
private int numero;
private String estado;
private String cidade;
public class Imovel implements Anunciavel, Serializable {
private String descricao;
private String titulo;
private float preco;
private String rua;
private int numero;
private String estado;
private String cidade;
private String cep;
private String complemento="";

public String getCidade() {
return cidade;
Expand All @@ -27,8 +30,6 @@ public String getCidade() {
public void setCidade(String cidade) {
this.cidade = cidade;
}
private String cep;
private String complemento="";

public String getRua() {
return rua;
Expand Down Expand Up @@ -69,31 +70,35 @@ public String getComplemento() {
public void setComplemento(String complemento) {
this.complemento = complemento;
}
@Override

@Override
public String getTitulo() {
return titulo;
}

@Override
public void setTitulo(String titulo) {
this.titulo = titulo;
}
@Override

@Override
public float getPreco() {
return preco;
}
@Override

@Override
public void setPreco(float preco) {
this.preco = preco;
}

@Override
public void setDescricao(String desc) {
this.descricao = desc;
}

@Override
public String getDescricao() {
return this.descricao;
}



}
4 changes: 3 additions & 1 deletion src/java/br/com/tads/tccpool/beans/Instituicao.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
*/
package br.com.tads.tccpool.beans;

import java.io.Serializable;

/**
*
* @author onurb
*/
public class Instituicao {
public class Instituicao implements Serializable {
private int id;
private String nome;

Expand Down
56 changes: 56 additions & 0 deletions src/java/br/com/tads/tccpool/beans/Material.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.tads.tccpool.beans;

import br.com.tads.tccpool.interfaces.Anunciavel;
import java.io.Serializable;

/**
*
* @author Diego
*/
public class Material implements Anunciavel, Serializable {
private String titulo;
private String descricao;
private float preco;
private int tipo;

public String getTitulo() {
return titulo;
}

public void setTitulo(String titulo) {
this.titulo = titulo;
}

public String getDescricao() {
return descricao;
}

public void setDescricao(String descricao) {
this.descricao = descricao;
}

public float getPreco() {
return preco;
}

public void setPreco(float preco) {
this.preco = preco;
}

public int getTipo() {
return tipo;
}

public void setTipo(int tipo) {
this.tipo = tipo;
}




}
52 changes: 52 additions & 0 deletions src/java/br/com/tads/tccpool/beans/Movel.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.tads.tccpool.beans;

import br.com.tads.tccpool.interfaces.Anunciavel;
import java.io.Serializable;

/**
*
* @author Diego
*/
public class Movel implements Anunciavel, Serializable {
private String titulo;
private String descricao;
private Float preco;
private int tipo;

@Override
public void setDescricao(String s) {
this.descricao = s;
}

@Override
public String getDescricao() {
return descricao;
}

@Override
public void setPreco(float preco) {
this.preco = preco;
}

@Override
public float getPreco() {
return preco;
}

@Override
public String getTitulo() {
return titulo;
}

@Override
public void setTitulo(String titulo) {
this.titulo = titulo;
}


}
4 changes: 3 additions & 1 deletion src/java/br/com/tads/tccpool/beans/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
*/
package br.com.tads.tccpool.beans;

import java.io.Serializable;

/**
*
* @author onurb
*/
public class User {
public class User implements Serializable {
private int id; //Número identificador do usuário
private String nome; //Nome do usuário
private String cpf; //CPF do usuário
Expand Down
Loading

0 comments on commit 379af8b

Please sign in to comment.