/RELEASENOTES.TXT

http://solidstack.googlecode.com/ · Plain Text · 49 lines · 34 code · 15 blank · 0 comment · 0 complexity · d773e0b59cccf56cb16c16431f3be779 MD5 · raw file

  1. Changes in 2.0.0 (revision 264) compared to 1.1.5
  2. -------------------------------------------------
  3. The biggest and most important change is that the query template engine is been rebuild from the ground up to be a fully generic template engine. The query template engine has become an extension of this generic template engine.
  4. Template file must have the following first line, starting in column 1:
  5. <%@ template version="1.0" language="groovy" %>
  6. The language attribute becomes optional when the TemplateLoader or QueryLoader is ocnfigured with a default language.
  7. Supported script languages: groovy and javascript.
  8. For javascript you need the rhino javascript implementation in the classpath.
  9. A lot of improvements in the template compiler.
  10. Generic templates:
  11. Template files need to have the .slt extension, for example: soap-result.xml.slt
  12. Query templates:
  13. The QueryManager is renamed to QueryLoader.
  14. setPackage() is replaced with setTemplatePath()
  15. The path can now be:
  16. a folder in the classpath: "classpath:/solidstack/query/"
  17. a folder in the filesystem: "c:/folder/"
  18. a url: "file:/c:/folder/"
  19. Queries do not have to be bound to its parameters before execution. Parameters are supplied when executing.
  20. Template files need to have the .slt extension, for example: example-query.sql.slt
  21. Query.getPreparedSQL() is now public and returns a PreparedSQL object.
  22. Added directive: <%@ query language="SQL|JPQL|HQL" %>, default SQL
  23. The helps the Query to automatically determine if a native query or a normal query should be used.
  24. The HibernateSupport class is moved to the solidstack.query.hibernate package.
  25. Added methods:
  26. createQuery() which returns a org.hibernate.Query.
  27. executeUpdate() which calls org.hibernate.Query.executeUpdate() and returns the number of modified entities.
  28. list() which calls org.hibernate.Query.list() and returns a list of Hibernate entities.
  29. uniqueResult() which calls org.hibernate.Query.uniqueResult() and returns a single Hibernate entity or null.
  30. The JPASupport class is moved to the solidstack.query.jpa package.
  31. Added methods:
  32. getResultList() without the resultClass parameter. This one returns a list of Object[] or a list of objects depending on the number of values returned by the query.
  33. getSingleResult() without the resultClass parameter. This one returns an Object[] or an object depending on the number of values returned by the query.
  34. executeUpdate() which calls javax.persistence.Query.executeUpdate() and returns the number of modified entities.