Subversion Repositories SmartDukaan

Rev

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

Rev 21545 Rev 21720
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity;
1
package com.spice.profitmandi.dao.entity.dtr;
2
 
2
 
3
import java.io.Serializable;
3
import java.io.Serializable;
4
 
4
 
5
import javax.persistence.Column;
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
6
import javax.persistence.Entity;
Line 17... Line 17...
17
 * 
17
 * 
18
 * @author ashikali
18
 * @author ashikali
19
 *
19
 *
20
 */
20
 */
21
@Entity
21
@Entity
22
@Table(name="retailer_brand", schema = "dtr", uniqueConstraints = {@UniqueConstraint(columnNames = {"retailer_id", "brand_id"})})
22
@Table(name="dtr.retailer_brand", schema = "dtr", uniqueConstraints = {@UniqueConstraint(columnNames = {"retailer_id", "brand_id"})})
23
@NamedQueries({
23
@NamedQueries({
24
	@NamedQuery(name="RetailerBrand.selectByRetailerId", query="select rb from RetailerBrand rb where rb.retailerId= :retailerId"),
24
	@NamedQuery(name="RetailerBrand.selectByRetailerId", query="select rb from RetailerBrand rb where rb.retailerId= :retailerId"),
25
	@NamedQuery(name="RetailerBrand.deleteByRetailerAndBrandId", query="delete from RetailerBrand rb where rb.retailerId= :retailerId and rb.brandId = :brandId"),
25
	@NamedQuery(name="RetailerBrand.deleteByRetailerAndBrandId", query="delete from RetailerBrand rb where rb.retailerId= :retailerId and rb.brandId = :brandId"),
26
	@NamedQuery(name = "RetailerBrand.selectBrandNamesByRetailerId", query = "select b.name from RetailerBrand rb join Brand b on b.id = rb.brandId where rb.retailerId = :retailerId")
26
	@NamedQuery(name = "RetailerBrand.selectBrandNamesByRetailerId", query = "select b.name from RetailerBrand rb join Brand b on b.id = rb.brandId where rb.retailerId = :retailerId")
27
})
27
})