在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
最满意答案
伟大的问题,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.
相关问答
更多-
SSRS:图表的位置(SSRS: position of a chart)[2023-12-30]
将两个图表嵌入矩形中,并将Tablix保留在矩形外部 embed both the charts in a rectangle, and leave the tablix outside the rectangle -
SSRS元素跳转位置(SSRS elements jumping of Position)[2023-07-04]
伟大的问题,GBerisha! 实质上,您需要修正标题文本框和最右边两个文本框之间的水平距离。 有两种方法可以实现这一点。 第一种方法是从工具箱菜单中创建一个矩形,并将标题文本框和最右边的两个文本框放在该矩形内。 这将使扩展的矩阵在扩展时不会推出最右边的两个文本框。 另一种方法是创建一个表格,删除细节行,并将三个文本框放在表格标题中。 Great Question, GBerisha! Essentially, you want the horizontal distance between the Hea ... -
将Tablix元素放在SSRS中不同页面上的相同位置(Position tablix elements at the same position on different pages in SSRS)[2023-09-25]
我过去做过的事情: 您应该创建具有固定高度和宽度的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 ...
-
如果声明跳跃(if statement jumping)[2021-12-15]
你忘记了连接你的两个的else 。 你需要使用: else if ( choosePositionO ) You forgot an else that connects your two ifs. You need to use: else if ( choosePositionO ) -
UIView动画位置跳跃(UIView animated position jumping)[2021-07-31]
只是为了避免人们不想通读文本墙来找到解决方案,问题是我在所有视图布局之前都使用了不同视图控制器中的视图位置。 我假定在动画逻辑开始之前整个视图生命周期已经在我的呈现视图控制器中处理过了,但我错了。 动画通话顺序: 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 || ...
-
元素的位置(Position of elements)[2022-12-14]
你已经看到了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/