Announcement Announcement Module
Collapse
No announcement yet.
Problems mapping to MySQL database Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems mapping to MySQL database

    No matter how hard I try, I always have problems mapping with database
    even with database reverse engineer, I can't display the values that I want.

    Then,I tried manually creating entities with existing database, also it doesn't work

    Now, I'm at my last straw, I tried manually creating entities, and in persistence.xml I tried to implement the following and see whether the entities I created, and the database structure matches.

    <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>



    In the end, it doesn't match

  • #2
    from Person.java
    Attachment Attachment

    How to make the default values be CURRENT_TIMESTAMP?

    Why are the VARCHAR(255), I thought I limited their size to 45?
    Attached Files

    Comment


    • #3
      not sure what to make of this error message, it's so hard to find what's wrong with the code
      Attachment
      Attached Files

      Comment

      Working...
      X