facebook

unique constraint (ACCESS_POINT_14.PK_METADATA) violated.

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #281031 Reply

    schanamolu
    Member

    Hi,

    We are using myeclipse 5.1 under eclipse 3.3. We are getting following exception. we are using spring/Hibernate capabilities of my eclipse.

    Hibernate: insert into METADATA (CONFIG_VALUE, CONFIG_NAME, CONFIG_TYPE) values (?, ?, ?)
    org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute JDBC batch update; SQL [insert into METADATA (CONFIG_VALUE, CONFIG_NAME, CONFIG_TYPE) values (?, ?, ?)]; ORA-00001: unique constraint (ACCESS_POINT_14.PK_METADATA) violated
    ; nested exception is java.sql.BatchUpdateException: ORA-00001: unique constraint (ACCESS_POINT_14.PK_METADATA) violated.

    what is the exception API we should use to display to the end user what data we are trying to insert in data that has violated “ORA-00001: unique constraint (ACCESS_POINT_14.PK_METADATA) violated”.

    Can you get some sample code that would be appreciated.

    thanks,
    Sreedhar.

    #281887 Reply

    Riyad Kalla
    Member

    Sreedhar,
    There s no specific Exception API, but you will either need to map cryptic API errors to more friendly ones to display to the user, or just display the ORA error to them directly, but that doesn’t have anything to do wth MyEclipse or Hibernate that is s a design decision you would need to make with your team.

    If I misunderstood your question, let me know.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: unique constraint (ACCESS_POINT_14.PK_METADATA) violated.

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