Subversion Repositories SmartDukaan

Rev

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

Rev 33696 Rev 33827
Line 10... Line 10...
10
import java.util.List;
10
import java.util.List;
11
import java.util.Objects;
11
import java.util.Objects;
12
 
12
 
13
@Entity
13
@Entity
14
@Table(name = "transaction.loan")
14
@Table(name = "transaction.loan")
-
 
15
@NamedQueries({
-
 
16
		@NamedQuery(name = "Loan.getLoansCountWithFofoID", query = "select new com.spice.profitmandi.dao.model.LoanCountByFofoIdModel(" +
-
 
17
				" cast(fofoId as int), count(id))" +
-
 
18
				" from Loan " +
-
 
19
				" where fofoId in (:fofoIds) " +
-
 
20
				" group by fofoId "),
-
 
21
})
-
 
22
 
15
public class Loan {
23
public class Loan {
16
 
24
 
17
	@Id
25
	@Id
18
	@Column(name = "id", unique = true, updatable = false)
26
	@Column(name = "id", unique = true, updatable = false)
19
	@GeneratedValue(strategy = GenerationType.IDENTITY)
27
	@GeneratedValue(strategy = GenerationType.IDENTITY)