Tags » NetBeans

Building GlassFish from Source

Building GlassFish from Source

    This blog will look at building Glassfish 4.0.1 from source and configuring NetBeans 8.0 to then use, modify, and debug it. While GlassFish can be downloaded ready for use, even coming bundled with NetBeans, there will be some among us who need (or just want) to build it from scratch. 13 more words

Java

Netbeans 8.0 and Java 8

Netbeans 8.0 and Java 8

Hello everyone, and was launched the new version of Java and Netbeans also released its latest version supports java in this post will show you how to download and configure. 211 more words

Java

Tips: NetBeans on Ubuntu

Ubuntu Linux is a very nice software development platform and NetBeans fit very well in it.

Nevertheless few tips can make our developer life easier. These tips can be applied to other Linux distributions. 450 more words

Java

Using Hibernate with Netbeans 7.2

Note: Hibernate libraries should be added for both projects.

Person POJO class generated from the database.

@Entity
@Table(name = "PERSON")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Person.findAll", query = "SELECT p FROM Person p"),
    @NamedQuery(name = "Person.findByPersonid", query = "SELECT p FROM Person p WHERE p.personid = :personid"),
    @NamedQuery(name = "Person.findByName", query = "SELECT p FROM Person p WHERE p.name = :name"),
    @NamedQuery(name = "Person.findByAge", query = "SELECT p FROM Person p WHERE p.age = :age")})
public class Person implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "PERSONID")
    private Integer personid;
    @Size(max = 50)
    @Column(name = "NAME")
    private String name;
    @Column(name = "AGE")
    private Integer age;

    public Person() {
    }

    public Person(Integer personid) {
        this.personid = personid;
    }

    public Integer getPersonid() {
        return personid;
    }

    public void setPersonid(Integer personid) {
        this.personid = personid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (personid != null ? 307 more words
Code

00 The Quick Start Guide to Coding in Java

The Quick Start Guide to Coding in Java

The two necessities you need for a quick Java coding environment:

  1. The Java SDK (Software Development Kit)
  2. 240 more words
Eclipse