Skip to content

Commit

Permalink
Apply consistent line endings to all java source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Jun 24, 2022
1 parent 6884729 commit 0162456
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 54 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ./mvnw fails on Windows in git bash if -Xmx in that file has a trailing CRLF
.mvn/jvm.config text eol=lf
*.java text eol=lf
*.xml text eol=lf
*.java text diff=java eol=lf
*.kt text diff=kotlin eol=lf

Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
package org.acme.gradle.multi.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

@Entity
@NamedQuery(name = "Product.findAll", query = "SELECT p FROM Product p ORDER BY p.name")
public class Product {
@Id
private Integer id;

@Column
private String name;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}


}
package org.acme.gradle.multi.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

@Entity
@NamedQuery(name = "Product.findAll", query = "SELECT p FROM Product p ORDER BY p.name")
public class Product {

@Id
private Integer id;

@Column
private String name;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

}

Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package org.acme.gradle.multi.dao;

import java.util.List;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;

@ApplicationScoped
public class ProductService {

@Inject
EntityManager em;

public List<Product> getProducts() {
return em.createNamedQuery("Product.findAll", Product.class).getResultList();
}
}
package org.acme.gradle.multi.dao;

import java.util.List;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;

@ApplicationScoped
public class ProductService {

@Inject
EntityManager em;

public List<Product> getProducts() {
return em.createNamedQuery("Product.findAll", Product.class).getResultList();
}

}

0 comments on commit 0162456

Please sign in to comment.