facebook

couldn’t get annotation support with spring

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #309740 Reply

    Vishal kumar Singh
    Participant

    Hi,

    I added the suport of spring and strutsd 2 in my application. then i added the hibernate support via spring. now in reverse engineering the annotation support is disabled …… is there anyway i can come over this hudle.

    My Eclipse 8.5

    #309761 Reply

    Vishal,
    You should enable annotations support on your project. Right click on your project and from the context menu select MyEclipse > “Add Annotations Support”.
    Let me know how that works for you.

    #309764 Reply

    Vishal kumar Singh
    Participant

    @support-shalini wrote:

    Vishal,
    You should enable annotations support on your project. Right click on your project and from the context menu select MyEclipse > “Add Annotations Support”.
    Let me know how that works for you.

    i cant get wat u said but yes i am getting the option (in the menu ) add “Add Hibernate Annotations”

    #309765 Reply

    Vishal kumar Singh
    Participant

    some how i got this also in a new project then also…………….the “SessionFactory Id : ” field is empty

    #309766 Reply

    Vishal kumar Singh
    Participant

    @connect2vishal wrote:

    some how i got this also in a new project then also…………….the “SessionFactory Id : ” field is empty

    #309770 Reply

    Vishal,
    Sorry for the inconvenience. Can you list out the steps in detail to replicate your issue?

    #309771 Reply

    Vishal kumar Singh
    Participant

    @support-shalini wrote:

    Vishal,
    Sorry for the inconvenience. Can you list out the steps in detail to replicate your issue?

    create any java webproject
    – then add spring capabilities
    -then add hibernate capabilities (use the spring applicationContext.xml for sessionfactory and hibernate configuration)
    – then try the reverse engineering on a db table then u will see the screen i posted in above comment.

    “The SessionFacorty Id” is missing……..

    #309802 Reply

    Vishal,
    I could replicate this at my end using hibernate 3.3 and annotations support.
    As a work around, you can use hibernate 3.2 libraries with annotations.
    Also, this issue does not replicate on ME8.6M1 with hibernate 3.3 and annotations
    Can you upgrade to 8.6M1 and let me know how that works for you?

    #309841 Reply

    Vishal kumar Singh
    Participant

    thanx i got it worked with 8.6 and hibernate 3.2/…..

    #309869 Reply

    Good to know that it worked.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: couldn’t get annotation support with spring

You must be logged in to post in the forum log in