首页 \ 问答 \ 在DAO,服务层体系结构中,使用Spring MVC与Hibernate的正确方式是什么?(What is the right way to use spring MVC with Hibernate in DAO, service layer architecture)

在DAO,服务层体系结构中,使用Spring MVC与Hibernate的正确方式是什么?(What is the right way to use spring MVC with Hibernate in DAO, service layer architecture)

我为我的DAO类使用Spring MVC和Hibernatedaosupport 。 这里困惑从哪里开始事务,无论它应该在服务层还是DAO层?

我的观点与服务层交互。 DAO被注入服务。

在DAO,服务层体系结构中使用Spring MVC与Hibernate的正确方法是什么?


I am using Spring MVC with Hibernatedaosupport for my DAO classes. Confused here where to start the transaction, whether it should be in service layer or DAO layer?

My view interacts with Service layer. DAO's are injected into services.

What is the right way to use Spring MVC with Hibernate in DAO, service layer architecture?


原文:https://stackoverflow.com/questions/8993318
更新时间:2021-12-19 21:12

最满意答案

伟大的问题,GBerisha! 实质上,您需要修正标题文本框和最右边两个文本框之间的水平距离。 有两种方法可以实现这一点。 第一种方法是从工具箱菜单中创建一个矩形,并将标题文本框和最右边的两个文本框放在该矩形内。 这将使扩展的矩阵在扩展时不会推出最右边的两个文本框。 另一种方法是创建一个表格,删除细节行,并将三个文本框放在表格标题中。


Great Question, GBerisha! Essentially, you want the horizontal distance between the Heading Textbox and the two rightmost Textboxes to be fixed. There are two ways to accomplish this. The first would be to create a Rectangle from the Toolbox Menu and place the Heading Textbox and the two rightmost Textboxes inside that Rectangle. That will keep the expanding Matrix from pushing out the two rightmost Textboxes as it expands. The other way would be to create a Table, delete the Detail Row, and place the three Textboxes in the Table Header.

相关问答

更多
  • 将两个图表嵌入矩形中,并将Tablix保留在矩形外部 embed both the charts in a rectangle, and leave the tablix outside the rectangle
  • 伟大的问题,GBerisha! 实质上,您需要修正标题文本框和最右边两个文本框之间的水平距离。 有两种方法可以实现这一点。 第一种方法是从工具箱菜单中创建一个矩形,并将标题文本框和最右边的两个文本框放在该矩形内。 这将使扩展的矩阵在扩展时不会推出最右边的两个文本框。 另一种方法是创建一个表格,删除细节行,并将三个文本框放在表格标题中。 Great Question, GBerisha! Essentially, you want the horizontal distance between the Hea ...
  • 我过去做过的事情: 您应该创建具有固定高度和宽度的Tablix对象,以便更好地使用赋值。 您应该在“属性”窗格上更多地更改它,而不是尝试使用鼠标固定位置更精确。 设置我的第一个'tablix'对象并选择'Size'为3in,0.75in为3英寸宽,0.75英寸高。 我会将第一个'Location'设置为0in,0in。 然后使用与2相似的方法来设置固定大小,在0英寸(第一个高度)中开始下一个。 所以在我的情况下,下一个将是0in,0.75in。 将“PageBreak”>“BreakLocation”设置为 ...
  • 不要使用float:left 将.dhFieldset元素设置为display:inline-block; 然后将它们的容器.dhButtonToolbar设置为white-space:nowrap; @media screen and (max-aspect-ratio: 1/1) { .dhFieldset{ display:inline-block; /*Added this line and remove the float:left*/ height:37 ...
  • 这是因为.element doest具有初始top位置,因此没有状态可以从中进行转换。 简单地给.element一个起始位置。 例如: $('body').click(function(){ $(this).toggleClass('spun'); }) .element { top: 0px; position: relative; transition: all 1s; transform: rotateX(1deg) rotateZ(1deg) rotateY(0deg ...
  • 你忘记了连接你的两个的else 。 你需要使用: else if ( choosePositionO ) You forgot an else that connects your two ifs. You need to use: else if ( choosePositionO )
  • 只是为了避免人们不想通读文本墙来找到解决方案,问题是我在所有视图布局之前都使用了不同视图控制器中的视图位置。 我假定在动画逻辑开始之前整个视图生命周期已经在我的呈现视图控制器中处理过了,但我错了。 动画通话顺序: viewDidLoad中 viewWillAppear中 animateTransition viewWillLayoutSubviews viewDidLayoutSubviews 所以解决的办法是手动调用setNeedsLayout()和layoutIfNeeded()作为我的animateT ...
  • 您可以简单地将margin-top的值设为与标题 (100px)的height相同的值,而不是顶部栏 ,因为您必须添加删除的内容。 const header = document.querySelector('#header'); const content = document.querySelector('#content'); const rect = header.getBoundingClientRect(); const scrollTop = window.pageYOffset || ...
  • 你已经看到了takeWhile的问题 - 我可以理解你为什么尝试这个(毕竟你想要使用length )但也许你应该尝试找到一个你不必首先使用length的解决方案。 一个好的方法可能是在遍历输入列表时跟踪indizes,然后查找等于`b的元素 如果你想使用递归,那么你可以一路走下去: index :: (Eq a, Num t) => a -> [a] -> [t] index b xs = index' 1 xs where index' _ [] = [] index' i (x:xs ...
  • 它与body的边缘/填充或ul或两者消失并再次出现有关。 见: http : //jsfiddle.net/pFsun/2/ It's to do with the margin/padding of the body or ul or both disappearing and reappearing. See this: http://jsfiddle.net/pFsun/2/

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)