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;








0















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.










share|improve this question




























    0















    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.










    share|improve this question
























      0












      0








      0


      1






      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 22 at 18:06









      MariosMarios

      65110




      65110






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer























            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
            );



            );













            draft saved

            draft discarded


















            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









            0














            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.






            share|improve this answer



























              0














              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.






              share|improve this answer

























                0












                0








                0







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 29 at 5:21









                MariosMarios

                65110




                65110





























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현