formatting work
This commit is contained in:
parent
393ca43033
commit
c970f3261e
|
@ -1,6 +1,5 @@
|
||||||
package org.baeldung.jackson.dtos.withEnum;
|
package org.baeldung.jackson.dtos.withEnum;
|
||||||
|
|
||||||
|
|
||||||
public enum TypeEnumSimple {
|
public enum TypeEnumSimple {
|
||||||
TYPE1(1, "Type A"), TYPE2(2, "Type 2");
|
TYPE1(1, "Type A"), TYPE2(2, "Type 2");
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.fasterxml.jackson.databind.type.CollectionType;
|
import com.fasterxml.jackson.databind.type.CollectionType;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
|
|
||||||
public class JacksonCollectionDeserializationUnitTest {
|
public class JacksonCollectionDeserializationUnitTest {
|
||||||
|
|
||||||
// tests - json to multiple entity
|
// tests - json to multiple entity
|
||||||
|
|
|
@ -28,7 +28,6 @@ import com.fasterxml.jackson.databind.ser.PropertyWriter;
|
||||||
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
|
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
|
||||||
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
|
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
|
||||||
|
|
||||||
|
|
||||||
public class JacksonSerializationIgnoreUnitTest {
|
public class JacksonSerializationIgnoreUnitTest {
|
||||||
|
|
||||||
// tests - single entity to json
|
// tests - single entity to json
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
package org.baeldung.jackson.try1;
|
package org.baeldung.jackson.try1;
|
||||||
|
|
||||||
public interface IEntity {
|
public interface IEntity {
|
||||||
public int getId();
|
public int getId();
|
||||||
}
|
}
|
|
@ -8,7 +8,6 @@ import org.baeldung.persistence.service.IChildService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class ChildService extends AbstractService<Child> implements IChildService {
|
public class ChildService extends AbstractService<Child> implements IChildService {
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ import javax.persistence.OrderBy;
|
||||||
public class Bar implements Serializable {
|
public class Bar implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
private long id;
|
private long id;
|
||||||
|
@ -25,12 +24,10 @@ public class Bar implements Serializable {
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
|
||||||
@OneToMany(mappedBy = "bar", fetch = FetchType.EAGER, cascade = CascadeType.ALL)
|
@OneToMany(mappedBy = "bar", fetch = FetchType.EAGER, cascade = CascadeType.ALL)
|
||||||
@OrderBy("name ASC")
|
@OrderBy("name ASC")
|
||||||
List<Foo> fooList;
|
List<Foo> fooList;
|
||||||
|
|
||||||
|
|
||||||
public Bar() {
|
public Bar() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,5 +151,4 @@ public class FooServiceSortingTests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package org.baeldung.servlet;
|
package org.baeldung.servlet;
|
||||||
|
|
||||||
|
|
||||||
//public class WebApp implements WebApplicationInitializer {
|
//public class WebApp implements WebApplicationInitializer {
|
||||||
//
|
//
|
||||||
// public WebApp() {
|
// public WebApp() {
|
||||||
|
|
Loading…
Reference in New Issue