Subversion Repositories SmartDukaan

Rev

Rev 22009 | Rev 31860 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22009 Rev 23269
Line 7... Line 7...
7
import javax.persistence.Convert;
7
import javax.persistence.Convert;
8
import javax.persistence.Entity;
8
import javax.persistence.Entity;
9
import javax.persistence.GeneratedValue;
9
import javax.persistence.GeneratedValue;
10
import javax.persistence.GenerationType;
10
import javax.persistence.GenerationType;
11
import javax.persistence.Id;
11
import javax.persistence.Id;
12
import javax.persistence.NamedQueries;
-
 
13
import javax.persistence.NamedQuery;
-
 
14
import javax.persistence.Table;
12
import javax.persistence.Table;
15
 
13
 
16
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
14
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
17
 
15
 
18
/**
16
/**
Line 21... Line 19...
21
 * @author ashikali
19
 * @author ashikali
22
 *
20
 *
23
 */
21
 */
24
@Entity
22
@Entity
25
@Table(name="dtr.brands", schema = "dtr")
23
@Table(name="dtr.brands", schema = "dtr")
26
@NamedQueries({
-
 
27
	@NamedQuery(name = "Brand.selectCount", query = "select count(b) from Brand b"),
-
 
28
	@NamedQuery(name="Brand.selectAll",query="select b from Brand b where b.displayedInPreferencePage = :displayedInPreferencePage"),
-
 
29
	@NamedQuery(name="Brand.selectById",query="select b from Brand b where b.id= :id"),
-
 
30
	@NamedQuery(name="Brand.selectByName",query="select b from Brand b where b.name= :name"),
-
 
31
	@NamedQuery(name="Brand.selectByIdAndName",query="select b from Brand b where b.id = :id and b.name= :name"),
-
 
32
	@NamedQuery(name = "Brand.selectCountByName", query = "select count(b) from Brand b where b.name= :name"),
-
 
33
	@NamedQuery(name="Brand.deleteById",query="delete from Brand b where b.id= :id")
-
 
34
})
-
 
35
public class Brand implements Serializable{
24
public class Brand implements Serializable{
36
	
25
	
37
	private static final long serialVersionUID = 1L;
26
	private static final long serialVersionUID = 1L;
38
	
27
	
39
	public Brand() {
28
	public Brand() {