/*
 * Copyright 2007 Kasper B. Graversen
 * 
 * Licensed 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
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.github.dkschlos.testbeans;

import com.github.dkschlos.io.declarative.CsvTransient;

/**
 * Test class for declarative mapping
 * 
 * @since 2.5
 * @author Dominik Schlosser
 */
class BeanWithoutAnnotations {
	@SuppressWarnings("unused")
	private static final String SHOULD_BE_IGNORED = "bla";
	
	@CsvTransient
	@SuppressWarnings("unused")
	private String shouldBeIgnored;
	
	private String name;
	private String lastName;
	private int age;
	private double weight;
	
	BeanWithoutAnnotations() {
	}
	
	BeanWithoutAnnotations(String name, String lastName, int age, double weight) {
		this.name = name;
		this.lastName = lastName;
		this.age = age;
		this.weight = weight;
	}
	
	String getName() {
		return name;
	}
	
	String getLastName() {
		return lastName;
	}
	
	int getAge() {
		return age;
	}
	
	double getWeight() {
		return weight;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + age;
		result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		long temp;
		temp = Double.doubleToLongBits(weight);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if( this == obj )
			return true;
		if( obj == null )
			return false;
		if( getClass() != obj.getClass() )
			return false;
		BeanWithoutAnnotations other = (BeanWithoutAnnotations) obj;
		if( age != other.age )
			return false;
		if( lastName == null ) {
			if( other.lastName != null )
				return false;
		} else if( !lastName.equals(other.lastName) )
			return false;
		if( name == null ) {
			if( other.name != null )
				return false;
		} else if( !name.equals(other.name) )
			return false;
		return Double.doubleToLongBits(weight) == Double.doubleToLongBits(other.weight);
	}
	
}

@@ -789,16 +789,23 @@
 ser%0A */%0A
+public 
 class Be
@@ -1082,24 +1082,31 @@
  weight;%0A%09%0A%09
+public 
 BeanWithoutA
@@ -1126,16 +1126,23 @@
 %7B%0A%09%7D%0A%09%0A%09
+public 
 BeanWith
@@ -1301,27 +1301,33 @@
  weight;%0A%09%7D%0A
-%09
 %0A%09
+public 
 String getNa
@@ -1351,19 +1351,25 @@
 ame;%0A%09%7D%0A
-%09
 %0A%09
+public 
 String g
@@ -1405,19 +1405,25 @@
 ame;%0A%09%7D%0A
-%09
 %0A%09
+public 
 int getA
@@ -1446,19 +1446,25 @@
 age;%0A%09%7D%0A
-%09
 %0A%09
+public 
 double g

fix tests