forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply consistent line endings to all java source files
- Loading branch information
Showing
3 changed files
with
56 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
70 changes: 35 additions & 35 deletions
70
...project-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/Product.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} | ||
|
37 changes: 19 additions & 18 deletions
37
...-with-dependencies/gradle-dao/src/main/java/org/acme/gradle/multi/dao/ProductService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
|
||
} |