package com.realnet.forma.Services;
import java.util.*;
import com.realnet.forma.Repository.TestttRepository;
import com.realnet.forma.Entity.Testtt;

import com.realnet.forma.Entity.Testtt_ListFilter1;
import java.util.List;

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

@Service
 public class Testtt_ListFilter1Service {
@Autowired
private TestttRepository Repository;




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



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