小编GMe*_*elo的帖子

使用工厂创建 JPA 实体

我正在考虑创建实体的 JPA 2.0 映射,但是我不想有任何设置器或公开构造函数,我想在从数据库获取类时使用工厂来创建我的类。我看过 pro JPA 2.0 的书和网上的一些文章,但找不到类似的东西,有人做过这样的事情吗?

谢谢你,

java persistence jpa batoo

6
推荐指数
1
解决办法
2066
查看次数

收集排序不使用Restful服务Backbone.Marionette

我正在Backbone.Marionette上建立一个集合,大量基于David Sulc在他的书"A Terntle Introduction to Backbone.Marionette"中提供的示例,这里有https://github.com/davidsulc/marionette-gentle-introduction/commit/175fc9b7bddfa6fea86954eb769c0cfb3e163c1e.

目前我还在做一切内联:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Marionette Contact Manager</title>
    <link href="./css/bootstrap.css" rel="stylesheet">
    <link href="./css/application.css" rel="stylesheet">
    <link href="./css/jquery-ui-1.10.0.custom.css" rel="stylesheet">
</head>

<body>

<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <span class="brand">Secret Identities</span>
        </div>
    </div>
</div>

<div id="main-region" class="container">
    //main area
</div>

<script type="text/template" id="contact-list-item">
    <td> <%= lastName %></td><td> <%= firstName %> </td><td> <%= occupation %> </td>
</script>

<script type="text/template" id="contact-list">
    <thead>
    <tr>
        <th>First Name</th>
        <th>Last Name</th>
        <th>Occupation</th>
    </tr>
    </thead>
    <tbody>
    </tbody> …
Run Code Online (Sandbox Code Playgroud)

restful-url backbone.js marionette

3
推荐指数
1
解决办法
2228
查看次数

标签 统计

backbone.js ×1

batoo ×1

java ×1

jpa ×1

marionette ×1

persistence ×1

restful-url ×1