<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer" rel="nofollow">Dave Syer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5973?redirect=false" rel="nofollow">SPR-5973</a></strong> and commented</p>
<p dir="auto">Add additional "query builder" features to UriTemplate.  The UrlTag already duplicates some features of UriTemplate, and I want to get the same features in Freemarker (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398096323" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10606" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10606/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10606">#10606</a>).  A good starting point would be a common place to get the parameter-appending feature that is needed in the UI.  A method like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public URI expandAndAppend(List&lt;ParameterValue&gt; parameters) {
   ...
}"><pre class="notranslate"><code class="notranslate">public URI expandAndAppend(List&lt;ParameterValue&gt; parameters) {
   ...
}
</code></pre></div>
<p dir="auto">would work generically.  The ParameterValue is a new convenience class containing a name and value pair.  The "append" piece could also be separated out for use on its own, but the combined method is needed to get the feature needed in UrlTag (replace placeholders and append the query parameters that are not used in replacement).</p>
<p dir="auto">Convenience methods that allow the user to pass in a Map&lt;String,String&gt; (in the case where multi-valued parameters are not needed) would also help.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 M4</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15582/UriBuilder.java" rel="nofollow">UriBuilder.java</a> (<em>8.38 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15583/UriBuilderTests.java" rel="nofollow">UriBuilderTests.java</a> (<em>7.44 kB</em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=attack7" rel="nofollow">Matt Young</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8523?redirect=false" rel="nofollow">SPR-8523</a></strong> and commented</p>
<p dir="auto">I've boiled down a confusing situation into a reproducible odd behavior in the attached example application.  In an OpenJPA-supported application when there are two classes (an abstract parent and a concrete child) that are both marked with <code class="notranslate">@Entity</code>, the classes are not enhanced when an autowired <code class="notranslate">@Repository</code> DAO is called from a unit test.  The DAO contains an inserted <code class="notranslate">@PersistenceContext</code> to get access to the EntityManager.</p>
<p dir="auto">If the call to the dao is commented out, the classes are enhanced as they should be.</p>
<p dir="auto">Using spring-instrument-3.1.M2.jar on a -javaagent line.</p>
<p dir="auto">Notes:</p>
<ul dir="auto">
<li>
<p dir="auto">Run a mvn package with the dao call commented out and not commented out in the test class</p>
</li>
<li>
<p dir="auto">Observe the difference in openjpa reporting the enhancement of classes vs. not enhancing them</p>
</li>
<li>
<p dir="auto">It doesn't matter if you use a persistence.xml file or the new packagesToScan option in LocalContainerEntityManagerFactoryBean</p>
</li>
</ul>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/18469/jpa-example.zip" rel="nofollow">jpa-example.zip</a> (<em>6.77 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398113348" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13148" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13148/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13148">#13148</a> <code class="notranslate">@Configurable</code> does not work if method with configured classes as parameter exists</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398153856" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14490" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14490/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14490">#14490</a> LoadTimeWeaving not working properly in Websphere</li>
</ul>
<p dir="auto">1 votes, 3 watchers</p>