Related
Gabriel Sanmartin I am creating a REST api where I am returning domain objects as JSON entities. So far I'm creating a controller where for each method I have to annotate it like this: @RequestMapping(value="/entity/{id}", produces = "application/json; charset
Gabriel Sanmartin I am creating a REST api where I am returning domain objects as JSON entities. So far I am creating a controller where I have to annotate each method like this: @RequestMapping(value="/entity/{id}", produces = "application/json; charset=utf-8
Gabriel Sanmartin I am creating a REST api where I am returning domain objects as JSON entities. So far I'm creating a controller where for each method I have to annotate it like this: @RequestMapping(value="/entity/{id}", produces = "application/json; charset
Jerome Verstrynge: Does anyone have an example of a clean Maven project that preprocesses class annotations at compile time and then generates classes to be compiled in the same compilation process? Does anyone have a step-by-step procedure for this project? J
Jerome Verstrynge: Does anyone have an example of a clean Maven project that preprocesses class annotations at compile time and then generates classes to be compiled in the same compilation process? Does anyone have a step-by-step procedure for this project? J
Jerome Verstrynge: Does anyone have an example of a clean Maven project that preprocesses class annotations at compile time and then generates classes to be compiled in the same compilation process? Does anyone have a step-by-step procedure for this project? J
iceberg When developing new classes/methods for a Java project, sometimes you want people to try out your new code, but don't want to guarantee that it will be backward compatible in future releases. In this case, use something like the @Unstable annotation to
iceberg When developing new classes/methods for a Java project, sometimes you want people to try out your new code, but don't want to guarantee that it will be backward compatible in future releases. In this case, use something like the @Unstable annotation to
iceberg When developing new classes/methods for a Java project, sometimes you want people to try out your new code, but you don't want to guarantee that it will be backward compatible in future releases. In this case, use something like the @Unstable annotatio
iceberg When developing new classes/methods for a Java project, sometimes you want people to try out your new code, but you don't want to guarantee that it will be backward compatible in future releases. In this case, use something like the @Unstable annotatio
BnB I have a question about JPA usage in Play. I've created a Model class, annotated with @Entity, and a Controller class, which has a static method annotated with @play.db.jpa.Transactional. When I start the activator to run, everything compiles correctly and
BnB I have a question about JPA usage in Play. I've created a Model class, annotated with @Entity, and a Controller class, which has a static method annotated with @play.db.jpa.Transactional. When I start the activator to run, everything compiles correctly and
benstpierre: I have a simple question about Hibernate usage. I keep seeing people using JPA annotations in one of two ways, by annotating the fields of the class and also by annotating the get method of the corresponding bean. My question is the following: wit
benstpierre: I have a simple question about Hibernate usage. I keep seeing people using JPA annotations in one of two ways, by annotating the fields of the class and also by annotating the get method of the corresponding bean. My question is the following: wit
Benstpierre : I have a simple question about Hibernate usage. I keep seeing people using JPA annotations in one of two ways, by annotating the fields of the class and also by annotating the get method of the corresponding bean. My question is the following: wi
Naresh I have a User model with the following fields. class User(models.Model):
user_id = models.CharField(max_length=40,unique=True)
user_name = models.CharField(max_length=40)
user_email = models.EmailField()
user_city = models.CharField(max_
Naresh I have a User model with the following fields. class User(models.Model):
user_id = models.CharField(max_length=40,unique=True)
user_name = models.CharField(max_length=40)
user_email = models.EmailField()
user_city = models.CharField(max_
Naresh I have a User model with the following fields. class User(models.Model):
user_id = models.CharField(max_length=40,unique=True)
user_name = models.CharField(max_length=40)
user_email = models.EmailField()
user_city = models.CharField(max_
ex3v I am using Spring Bootand Spring Data JPA. There are the following courses: import org.springframework.transaction.annotation.Transactional;
@Transactional(propagation = Propagation.REQUIRED)
public class Foo{
public void bar(){}
}
bar()and any ot
bavran I have a simple Java object (not connected to any database) and would like to have transactional semantics on it. Here is a contrived example: class MySession {
public User user;
public int numLogins;
}
public void login(MySession session, St
Michael Ressler: I am using Spring with JPA. me @EnableAsyncand @EnableTransactionManagementturn on. In my user registration service method, I call some other annotated service methods @Async. These methods do things like send welcome emails and register newly
ex3v I am using Spring Bootand Spring Data JPA. There are the following courses: import org.springframework.transaction.annotation.Transactional;
@Transactional(propagation = Propagation.REQUIRED)
public class Foo{
public void bar(){}
}
bar()and any ot
bavran I have a simple Java object (not connected to any database) and would like to have transactional semantics on it. Here is a contrived example: class MySession {
public User user;
public int numLogins;
}
public void login(MySession session, St
Michael Ressler I am using Spring with JPA. me @EnableAsyncand @EnableTransactionManagementturn on. In my user registration service method, I call some other annotated service methods @Async. These methods do things like send welcome emails and register newly
ex3v I am using Spring Bootand Spring Data JPA. There are the following courses: import org.springframework.transaction.annotation.Transactional;
@Transactional(propagation = Propagation.REQUIRED)
public class Foo{
public void bar(){}
}
bar()and any ot
bavran I have a simple Java object (not connected to any database) and would like to have transactional semantics on it. Here is a contrived example: class MySession {
public User user;
public int numLogins;
}
public void login(MySession session, St
Karibasappa GC Why can't a static method be used to manage transactions @Transactionalin a spring project ? @TransactionalWorks great for non-static methods, but static methods don't work for any particular reason? Geoand In order to understand why something l
Michael Ressler I am using Spring with JPA. me @EnableAsyncand @EnableTransactionManagementturn on. In my user registration service method, I call some other annotated service methods @Async. These methods do things like send welcome emails and register newly
ex3v I am using Spring Bootand Spring Data JPA. There are the following courses: import org.springframework.transaction.annotation.Transactional;
@Transactional(propagation = Propagation.REQUIRED)
public class Foo{
public void bar(){}
}
bar()and any ot