1 Reply Latest reply on Mar 10, 2007 4:10 PM by fhh

    JPA and View

    Alexander Petrov Newbie

      Hello I have a very simple question. Can I create and entity from a
      sql VIEW. I couldn't find anything for this in tutorials

        • 1. Re: JPA and View
          fhh Expert

          Yes , you can but it doesn't make much sense.

          Firstly ou will not be able to persist anything to the view unless you view is updatable/insertable or you write an instead of insrt/update trigger.

          Secondly, the JPAs support for not normalized data is somewhat disappointing.