1protected void onCreate(Bundle savedInstanceState) {
2 super.onCreate(savedInstanceState);
3 setContentView(R.layout.web_view_foto_activity);
4 webView = (WebView) findViewById(R.id.webViewfoto);
5 webSettings = webView.getSettings();
6 webSettings.setJavaScriptEnabled(true);
7 webSettings.setLoadWithOverviewMode(true);
8 webSettings.setAllowFileAccess(true);
9 webView.setWebViewClient(new Client());
10 webView.setWebChromeClient(new ChromeClient());
11 if (Build.VERSION.SDK_INT >= 30) {
12 webView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
13 }
14 else if(Build.VERSION.SDK_INT >=11 && Build.VERSION.SDK_INT < 30) {
15 webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
16 }
17 webView.loadUrl("https://sportfischerverein-onstmettingen.jagen-fuer-jaeger.de/sfv-onstmettingen/fangmeldung"); //change with your website
18 }
1package br.com.treinaweb.springbootapi.entity;
2
3import javax.persistence.Column;
4import javax.persistence.Entity;
5import javax.persistence.GeneratedValue;
6import javax.persistence.GenerationType;
7import javax.persistence.Id;
8
9@Entity
10public class Pessoa
11{
12 @Id
13 @GeneratedValue(strategy = GenerationType.AUTO)
14 private long id;
15
16 @Column(nullable = false)
17 private String nome;
18
19 public long getId() {
20 return id;
21 }
22
23 public String getNome() {
24 return nome;
25 }
26
27 public void setNome(String nome) {
28 this.nome = nome;
29 }
30
31 public void setId(long id) {
32 this.id = id;
33 }
34}