Spring Webflow - Problem with converter type1:M relationship in Hibernate and cascading operationsWhat's the difference between @Component, @Repository & @Service annotations in Spring?JPA : OpenJPA : The id class specified by type does not match the primary key fields of the classHibernate delete from onetomanyWhy is there a 0…1 Relation with join table?What is purpose of using cascade=CascadeType.TYPE_NAMEMappingJackson2HttpMessageConverter Can not find a (Map) Key deserializer for typeHibernate : Why FetchType.LAZY-annotated collection property eagerly loading?Right way to make insertion of an entity + foreign key on database(Use : Mysql, JPA)com.fasterxml.jackson.databind.JsonMappingException: Multiple back-reference properties with name 'defaultReference'
How to have a sharp product image?
What happened to Captain America in Endgame?
A Strange Latex Symbol
How much cash can I safely carry into the USA and avoid civil forfeiture?
Examples of non trivial equivalence relations , I mean equivalence relations without the expression " same ... as" in their definition?
Error message with tabularx
Why is it that the natural deduction method can't test for invalidity?
What's the polite way to say "I need to urinate"?
How do I reattach a shelf to the wall when it ripped out of the wall?
Was there a shared-world project before "Thieves World"?
How can I practically buy stocks?
Do I have to worry about players making “bad” choices on level up?
Examples of subgroups where it's nontrivial to show closure under multiplication?
Packing rectangles: Does rotation ever help?
Are Boeing 737-800’s grounded?
Rivers without rain
What is the relationship between spectral sequences and obstruction theory?
Critique of timeline aesthetic
How come there are so many candidates for the 2020 Democratic party presidential nomination?
How exactly does Hawking radiation decrease the mass of black holes?
Document starts having heaps of errors in the middle, but the code doesn't have any problems in it
How can I place the product on a social media post better?
US visa is under administrative processing, I need the passport back ASAP
How to make a pipeline wait for end-of-file or stop after an error?
Spring Webflow - Problem with converter type
1:M relationship in Hibernate and cascading operationsWhat's the difference between @Component, @Repository & @Service annotations in Spring?JPA : OpenJPA : The id class specified by type does not match the primary key fields of the classHibernate delete from onetomanyWhy is there a 0…1 Relation with join table?What is purpose of using cascade=CascadeType.TYPE_NAMEMappingJackson2HttpMessageConverter Can not find a (Map) Key deserializer for typeHibernate : Why FetchType.LAZY-annotated collection property eagerly loading?Right way to make insertion of an entity + foreign key on database(Use : Mysql, JPA)com.fasterxml.jackson.databind.JsonMappingException: Multiple back-reference properties with name 'defaultReference'
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I recently update to spring sts 4 so I'm not sure if something there is causing this issue because I did not have this error before.
I've made sure that that the user object being fetched from the database is a User object and should be passed into the next line of code
ERROR MESSAGE
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type
[com.paphos.pos.users.Users] to type [@javax.persistence.ManyToOne @javax.persistence.JoinColumn com.paphos.pos.users.Users]
WEBFLOW
<evaluate result="user" expression="usersService.getCustomerById(1)"></evaluate>
<evaluate expression="order.users = flowScope.user"></evaluate>
USERSS
@Entity
@Table(name = "users")
@StaticMetamodel(Users.class)
public class Users implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int idusers;
private String username;
private String password;
private int enabled = 0;
private String authority;
@Size(max = 25)
private String name;
@Size(min = 10, max = 10)
private String phoneNo;
@Size(min = 10, max = 10)
private String loyalty;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
private List<Timecard> timecard = new ArrayList<>();
ORDERS
@Entity(name="orders")
public class Orders implements Serializable {
private static final long serialVersionUID = -8538332203504273656L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int idorders;
@ManyToOne
@JoinColumn(name = "idusers")
private Users users;
@ManyToOne
@JoinColumn(name = "createdBy")
private Users createdBy;
@ManyToOne
@JoinColumn(name = "driver")
private Users driver;
@ManyToOne(cascade = CascadeType.ALL )
@JoinColumn(name = "idaddresses")
private Addresses addresses;
private double pretax;
private double tax;
private double total;
@ManyToOne
@JoinColumn(name = "idstatus")
private Status status;
private String timeOrdered;
private int discounted;
private int tipped;
private Double due;
@OrderColumn
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE , mappedBy = "orders")
private Set<Orderitem> orderitem;
private double disAmount;
private double tipAmount;
private int paid;
I've tried specifying the result as flowscope or any other type of variabel but nothings works. The error is also very confusing because it's the same type just has annotations on it. Maybe it has something to do webflow config because I don't get this error anywhere else. As mentioned above i just updated to sts 4 so im going to go back to version 3 and see if thats the issue. Any help would be appreciated.
spring hibernate spring-webflow
add a comment |
I recently update to spring sts 4 so I'm not sure if something there is causing this issue because I did not have this error before.
I've made sure that that the user object being fetched from the database is a User object and should be passed into the next line of code
ERROR MESSAGE
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type
[com.paphos.pos.users.Users] to type [@javax.persistence.ManyToOne @javax.persistence.JoinColumn com.paphos.pos.users.Users]
WEBFLOW
<evaluate result="user" expression="usersService.getCustomerById(1)"></evaluate>
<evaluate expression="order.users = flowScope.user"></evaluate>
USERSS
@Entity
@Table(name = "users")
@StaticMetamodel(Users.class)
public class Users implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int idusers;
private String username;
private String password;
private int enabled = 0;
private String authority;
@Size(max = 25)
private String name;
@Size(min = 10, max = 10)
private String phoneNo;
@Size(min = 10, max = 10)
private String loyalty;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
private List<Timecard> timecard = new ArrayList<>();
ORDERS
@Entity(name="orders")
public class Orders implements Serializable {
private static final long serialVersionUID = -8538332203504273656L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int idorders;
@ManyToOne
@JoinColumn(name = "idusers")
private Users users;
@ManyToOne
@JoinColumn(name = "createdBy")
private Users createdBy;
@ManyToOne
@JoinColumn(name = "driver")
private Users driver;
@ManyToOne(cascade = CascadeType.ALL )
@JoinColumn(name = "idaddresses")
private Addresses addresses;
private double pretax;
private double tax;
private double total;
@ManyToOne
@JoinColumn(name = "idstatus")
private Status status;
private String timeOrdered;
private int discounted;
private int tipped;
private Double due;
@OrderColumn
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE , mappedBy = "orders")
private Set<Orderitem> orderitem;
private double disAmount;
private double tipAmount;
private int paid;
I've tried specifying the result as flowscope or any other type of variabel but nothings works. The error is also very confusing because it's the same type just has annotations on it. Maybe it has something to do webflow config because I don't get this error anywhere else. As mentioned above i just updated to sts 4 so im going to go back to version 3 and see if thats the issue. Any help would be appreciated.
spring hibernate spring-webflow
add a comment |
I recently update to spring sts 4 so I'm not sure if something there is causing this issue because I did not have this error before.
I've made sure that that the user object being fetched from the database is a User object and should be passed into the next line of code
ERROR MESSAGE
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type
[com.paphos.pos.users.Users] to type [@javax.persistence.ManyToOne @javax.persistence.JoinColumn com.paphos.pos.users.Users]
WEBFLOW
<evaluate result="user" expression="usersService.getCustomerById(1)"></evaluate>
<evaluate expression="order.users = flowScope.user"></evaluate>
USERSS
@Entity
@Table(name = "users")
@StaticMetamodel(Users.class)
public class Users implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int idusers;
private String username;
private String password;
private int enabled = 0;
private String authority;
@Size(max = 25)
private String name;
@Size(min = 10, max = 10)
private String phoneNo;
@Size(min = 10, max = 10)
private String loyalty;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
private List<Timecard> timecard = new ArrayList<>();
ORDERS
@Entity(name="orders")
public class Orders implements Serializable {
private static final long serialVersionUID = -8538332203504273656L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int idorders;
@ManyToOne
@JoinColumn(name = "idusers")
private Users users;
@ManyToOne
@JoinColumn(name = "createdBy")
private Users createdBy;
@ManyToOne
@JoinColumn(name = "driver")
private Users driver;
@ManyToOne(cascade = CascadeType.ALL )
@JoinColumn(name = "idaddresses")
private Addresses addresses;
private double pretax;
private double tax;
private double total;
@ManyToOne
@JoinColumn(name = "idstatus")
private Status status;
private String timeOrdered;
private int discounted;
private int tipped;
private Double due;
@OrderColumn
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE , mappedBy = "orders")
private Set<Orderitem> orderitem;
private double disAmount;
private double tipAmount;
private int paid;
I've tried specifying the result as flowscope or any other type of variabel but nothings works. The error is also very confusing because it's the same type just has annotations on it. Maybe it has something to do webflow config because I don't get this error anywhere else. As mentioned above i just updated to sts 4 so im going to go back to version 3 and see if thats the issue. Any help would be appreciated.
spring hibernate spring-webflow
I recently update to spring sts 4 so I'm not sure if something there is causing this issue because I did not have this error before.
I've made sure that that the user object being fetched from the database is a User object and should be passed into the next line of code
ERROR MESSAGE
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type
[com.paphos.pos.users.Users] to type [@javax.persistence.ManyToOne @javax.persistence.JoinColumn com.paphos.pos.users.Users]
WEBFLOW
<evaluate result="user" expression="usersService.getCustomerById(1)"></evaluate>
<evaluate expression="order.users = flowScope.user"></evaluate>
USERSS
@Entity
@Table(name = "users")
@StaticMetamodel(Users.class)
public class Users implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int idusers;
private String username;
private String password;
private int enabled = 0;
private String authority;
@Size(max = 25)
private String name;
@Size(min = 10, max = 10)
private String phoneNo;
@Size(min = 10, max = 10)
private String loyalty;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
private List<Timecard> timecard = new ArrayList<>();
ORDERS
@Entity(name="orders")
public class Orders implements Serializable {
private static final long serialVersionUID = -8538332203504273656L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int idorders;
@ManyToOne
@JoinColumn(name = "idusers")
private Users users;
@ManyToOne
@JoinColumn(name = "createdBy")
private Users createdBy;
@ManyToOne
@JoinColumn(name = "driver")
private Users driver;
@ManyToOne(cascade = CascadeType.ALL )
@JoinColumn(name = "idaddresses")
private Addresses addresses;
private double pretax;
private double tax;
private double total;
@ManyToOne
@JoinColumn(name = "idstatus")
private Status status;
private String timeOrdered;
private int discounted;
private int tipped;
private Double due;
@OrderColumn
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE , mappedBy = "orders")
private Set<Orderitem> orderitem;
private double disAmount;
private double tipAmount;
private int paid;
I've tried specifying the result as flowscope or any other type of variabel but nothings works. The error is also very confusing because it's the same type just has annotations on it. Maybe it has something to do webflow config because I don't get this error anywhere else. As mentioned above i just updated to sts 4 so im going to go back to version 3 and see if thats the issue. Any help would be appreciated.
spring hibernate spring-webflow
spring hibernate spring-webflow
asked Mar 22 at 18:06
MariosMarios
65110
65110
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This error is somehow caused by spring dev tools being in pom.xml. Upon removing it from my code it began to work. Not sure why this is the case though.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55305483%2fspring-webflow-problem-with-converter-type%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This error is somehow caused by spring dev tools being in pom.xml. Upon removing it from my code it began to work. Not sure why this is the case though.
add a comment |
This error is somehow caused by spring dev tools being in pom.xml. Upon removing it from my code it began to work. Not sure why this is the case though.
add a comment |
This error is somehow caused by spring dev tools being in pom.xml. Upon removing it from my code it began to work. Not sure why this is the case though.
This error is somehow caused by spring dev tools being in pom.xml. Upon removing it from my code it began to work. Not sure why this is the case though.
answered Mar 29 at 5:21
MariosMarios
65110
65110
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55305483%2fspring-webflow-problem-with-converter-type%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown