package com.commafeed.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "USERS")
@SuppressWarnings("serial")
public class UserSettings implements Serializable {

	public enum ReadingMode {
		ALL, UNREAD
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	private User user;

	@Enumerated(EnumType.STRING)
	private ReadingMode readingMode;

	public ReadingMode getReadingMode() {
		return readingMode;
	}

	public void setReadingMode(ReadingMode readingMode) {
		this.readingMode = readingMode;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}

package com.commafeed.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "USERSETTINGS")
@SuppressWarnings("serial")
public class UserSettings implements Serializable {

	public enum ReadingMode {
		ALL, UNREAD
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	private User user;

	@Enumerated(EnumType.STRING)
	private ReadingMode readingMode;

	public ReadingMode getReadingMode() {
		return readingMode;
	}

	public void setReadingMode(ReadingMode readingMode) {
		this.readingMode = readingMode;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}

fix table name