package com.realnet.angulardatatype.Services;
import java.util.*;
import com.realnet.angulardatatype.Repository.Adv5Repository;
import com.realnet.angulardatatype.Entity.Adv5;

import com.realnet.angulardatatype.Entity.Adv5_ListFilter1;
import java.util.List;

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

@Service
 public class Adv5_ListFilter1Service {
@Autowired
private Adv5Repository Repository;




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



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