package com.realnet.basicp1.Services;
import java.util.*;
import com.realnet.basicp1.Repository.Student_registrationRepository;
import com.realnet.basicp1.Entity.Student_registration;

import com.realnet.basicp1.Entity.Student_registration_ListFilter1;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
	import org.springframework.stereotype.Service;

@Service
 public class Student_registration_ListFilter1Service {
@Autowired
private Student_registrationRepository Repository;




 public   List<Student_registration_ListFilter1>   getlistbuilder() {
	List<Student_registration> list= Repository.findAll();
		ArrayList<Student_registration_ListFilter1> l = new ArrayList<>();
		for (Student_registration data : list) {
{	
Student_registration_ListFilter1 dummy = new Student_registration_ListFilter1();
			dummy.setId(data.getId());
  dummy.setName(data.getName());
	l.add(dummy);
} 
} 		
return l;}



 public   List<Student_registration_ListFilter1>   getlistbuilderparam( ) {
	List<Student_registration> list= Repository.findAll();
		ArrayList<Student_registration_ListFilter1> l = new ArrayList<>();
		for (Student_registration data : list) {
{	
Student_registration_ListFilter1 dummy = new Student_registration_ListFilter1();
			dummy.setId(data.getId());
  dummy.setName(data.getName());
	l.add(dummy);
} 
} 		
return l;}
}